Explorar el Código

Matrix3: Remove remaining usafe of `translate()` and `scale()`. (#33754)

Michael Herzog hace 1 semana
padre
commit
7ceafb2d67

+ 3 - 3
examples/jsm/loaders/SVGLoader.js

@@ -1657,7 +1657,7 @@ class SVGLoader extends Loader {
 				const tx = parseFloatWithUnits( node.getAttribute( 'x' ) || 0 );
 				const tx = parseFloatWithUnits( node.getAttribute( 'x' ) || 0 );
 				const ty = parseFloatWithUnits( node.getAttribute( 'y' ) || 0 );
 				const ty = parseFloatWithUnits( node.getAttribute( 'y' ) || 0 );
 
 
-				transform.translate( tx, ty );
+				transform.makeTranslation( tx, ty );
 
 
 			}
 			}
 
 
@@ -1709,7 +1709,7 @@ class SVGLoader extends Loader {
 
 
 								}
 								}
 
 
-								currentTransform.translate( tx, ty );
+								currentTransform.makeTranslation( tx, ty );
 
 
 							}
 							}
 
 
@@ -1758,7 +1758,7 @@ class SVGLoader extends Loader {
 
 
 								}
 								}
 
 
-								currentTransform.scale( scaleX, scaleY );
+								currentTransform.makeScale( scaleX, scaleY );
 
 
 							}
 							}
 
 

+ 1 - 1
examples/jsm/utils/GeometryCompressionUtils.js

@@ -509,7 +509,7 @@ function quantizedEncodeUV( array, bytes ) {
 
 
 	}
 	}
 
 
-	decodeMat.scale(
+	decodeMat.makeScale(
 		( max[ 0 ] - min[ 0 ] ) / segments,
 		( max[ 0 ] - min[ 0 ] ) / segments,
 		( max[ 1 ] - min[ 1 ] ) / segments
 		( max[ 1 ] - min[ 1 ] ) / segments
 	);
 	);

粤ICP备19079148号