Selaa lähdekoodia

BufferGeometry: Use Vector3.fromBufferAttribute() in normalizeNormals().

Mugen87 5 vuotta sitten
vanhempi
commit
1f25819079
1 muutettua tiedostoa jossa 1 lisäystä ja 3 poistoa
  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();