Browse Source

BufferGeometry: applyToBuffer seems to be adding NaNs. Reverting.
/cc @benadams

Mr.doob 10 years ago
parent
commit
3cdfe52636
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/BufferGeometry.js

+ 2 - 2
src/core/BufferGeometry.js

@@ -68,7 +68,7 @@ THREE.BufferGeometry.prototype = {
 
 
 		if ( position !== undefined ) {
 		if ( position !== undefined ) {
 
 
-			matrix.applyToBuffer( position );
+			matrix.applyToVector3Array( position.array );
 			position.needsUpdate = true;
 			position.needsUpdate = true;
 
 
 		}
 		}
@@ -79,7 +79,7 @@ THREE.BufferGeometry.prototype = {
 
 
 			var normalMatrix = new THREE.Matrix3().getNormalMatrix( matrix );
 			var normalMatrix = new THREE.Matrix3().getNormalMatrix( matrix );
 
 
-			normalMatrix.applyToBuffer( normal );
+			normalMatrix.applyToVector3Array( normal.array );
 			normal.needsUpdate = true;
 			normal.needsUpdate = true;
 
 
 		}
 		}