@@ -456,7 +456,7 @@ internal void ValidateNormals(Validation.ValidationContext result)
456456
457457 for ( int i = 0 ; i < normals . Count ; ++ i )
458458 {
459- if ( result . TryFixUnitLength ( i , normals [ i ] ) )
459+ if ( result . TryFixUnitLengthOrError ( i , normals [ i ] ) )
460460 {
461461 normals [ i ] = normals [ i ] . SanitizeNormal ( ) ;
462462 }
@@ -476,7 +476,7 @@ internal void ValidateTangents(Validation.ValidationContext result)
476476
477477 for ( int i = 0 ; i < tangents . Count ; ++ i )
478478 {
479- if ( result . TryFixTangent ( i , tangents [ i ] ) )
479+ if ( result . TryFixTangentOrError ( i , tangents [ i ] ) )
480480 {
481481 tangents [ i ] = tangents [ i ] . SanitizeTangent ( ) ;
482482 }
@@ -523,7 +523,7 @@ internal void ValidateMatrices(Validation.ValidationContext result)
523523 {
524524 result = result . GetContext ( this ) ;
525525
526- SourceBufferView . ValidateBufferUsageData ( result ) ;
526+ SourceBufferView . ValidateBufferUsagePlainData ( result ) ;
527527 result . CheckLinkMustBeAnyOf ( nameof ( Dimensions ) , Dimensions , DimensionType . MAT4 ) ;
528528
529529 var matrices = this . AsMatrix4x4Array ( ) ;
@@ -536,13 +536,13 @@ internal void ValidateMatrices(Validation.ValidationContext result)
536536
537537 internal void ValidateAnimationInput ( Validation . ValidationContext result )
538538 {
539- SourceBufferView . ValidateBufferUsageData ( result ) ;
539+ SourceBufferView . ValidateBufferUsagePlainData ( result ) ;
540540 result . CheckLinkMustBeAnyOf ( nameof ( Dimensions ) , Dimensions , DimensionType . SCALAR ) ;
541541 }
542542
543543 internal void ValidateAnimationOutput ( Validation . ValidationContext result )
544544 {
545- SourceBufferView . ValidateBufferUsageData ( result ) ;
545+ SourceBufferView . ValidateBufferUsagePlainData ( result ) ;
546546 result . CheckLinkMustBeAnyOf ( nameof ( Dimensions ) , Dimensions , DimensionType . SCALAR , DimensionType . VEC3 , DimensionType . VEC4 ) ;
547547 }
548548
0 commit comments