Browse Source

[BufferGeometry] normalizeNormals

Fix for InterleavedBufferAttribute
Brian Burke 8 years ago
parent
commit
8810f7d663
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/BufferGeometry.js

+ 2 - 2
src/core/BufferGeometry.js

@@ -821,8 +821,8 @@ Object.assign( BufferGeometry.prototype, EventDispatcher.prototype, {
 		for ( var i = 0, il = normals.count; i < il; i ++ ) {
 		for ( var i = 0, il = normals.count; i < il; i ++ ) {
 
 
 			x = normals.getX( i );
 			x = normals.getX( i );
-			y = normals.getY( i );;
-			z = normals.getZ( i );;
+			y = normals.getY( i );
+			z = normals.getZ( i );
 
 
 			n = 1.0 / Math.sqrt( x * x + y * y + z * z );
 			n = 1.0 / Math.sqrt( x * x + y * y + z * z );