2
0
Эх сурвалжийг харах

Merge pull request #19610 from Mugen87/dev49

BufferGeometry: Use Vector3.fromBufferAttribute() in normalizeNormals().
Michael Herzog 5 жил өмнө
parent
commit
e341ac1011

+ 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();