yomboprime 7 роки тому
батько
коміт
a9562c4910
1 змінених файлів з 8 додано та 8 видалено
  1. 8 8
      examples/js/loaders/SVGLoader.js

+ 8 - 8
examples/js/loaders/SVGLoader.js

@@ -981,18 +981,18 @@ THREE.SVGLoader.prototype = {
 
 							// Rotate around center (cx, cy)
 
-							var traslation = createIdTransform();
-							traslation[ 4 ] = -cx;
-							traslation[ 5 ] = -cy;
+							var translation = createIdTransform();
+							translation[ 4 ] = -cx;
+							translation[ 5 ] = -cy;
 
 							var rotation = createRotationTransform( angle );
 
-							var traslRot = createIdTransform();
-							multiplyTransforms( traslation, rotation, traslRot );
+							var translRot = createIdTransform();
+							multiplyTransforms( translation, rotation, translRot );
 
-							traslation[ 4 ] = cx;
-							traslation[ 5 ] = cy;
-							multiplyTransforms( traslRot, traslation, transform );
+							translation[ 4 ] = cx;
+							translation[ 5 ] = cy;
+							multiplyTransforms( translRot, translation, transform );
 
 						}