소스 검색

[BufferGeometry] normalizeNormals

Fix for InterleavedBufferAttribute
Brian Burke 8 년 전
부모
커밋
8810f7d663
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 ++ ) {
 
 			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 );