浏览代码

Merge pull request #19610 from Mugen87/dev49

BufferGeometry: Use Vector3.fromBufferAttribute() in normalizeNormals().
Michael Herzog 5 年之前
父节点
当前提交
e341ac1011
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/core/BufferGeometry.js

+ 1 - 3
src/core/BufferGeometry.js

@@ -858,9 +858,7 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
 
 
 		for ( let i = 0, il = normals.count; i < il; i ++ ) {
 		for ( let i = 0, il = normals.count; i < il; i ++ ) {
 
 
-			_vector.x = normals.getX( i );
-			_vector.y = normals.getY( i );
-			_vector.z = normals.getZ( i );
+			_vector.fromBufferAttribute( normals, i );
 
 
 			_vector.normalize();
 			_vector.normalize();