Browse Source

fixed multiplyVector3Array in Matrix3 and Matrix4

Dustbin 12 years ago
parent
commit
b9c7e4aad0
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/math/Matrix3.js
  2. 1 1
      src/math/Matrix4.js

+ 1 - 1
src/math/Matrix3.js

@@ -73,7 +73,7 @@ THREE.Matrix3.prototype = {
 			tmp.y = a[ i + 1 ];
 			tmp.z = a[ i + 2 ];
 
-			this.multiplyVector3( tmp );
+			tmp.applyMatrix3(this);
 
 			a[ i ]     = tmp.x;
 			a[ i + 1 ] = tmp.y;

+ 1 - 1
src/math/Matrix4.js

@@ -339,7 +339,7 @@ THREE.Matrix4.prototype = {
 			tmp.y = a[ i + 1 ];
 			tmp.z = a[ i + 2 ];
 
-			this.multiplyVector3( tmp );
+			tmp.applyMatrix4(this);
 
 			a[ i ]     = tmp.x;
 			a[ i + 1 ] = tmp.y;