Pārlūkot izejas kodu

Merge pull request #19610 from Mugen87/dev49

BufferGeometry: Use Vector3.fromBufferAttribute() in normalizeNormals().
Michael Herzog 5 gadi atpakaļ
vecāks
revīzija
e341ac1011
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  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 ++ ) {
 
-			_vector.x = normals.getX( i );
-			_vector.y = normals.getY( i );
-			_vector.z = normals.getZ( i );
+			_vector.fromBufferAttribute( normals, i );
 
 			_vector.normalize();