Explorar el Código

Fix incorrect variable reference. "attribute" -> "oldAttribute"

Garrett Johnson hace 6 años
padre
commit
c20dff3314
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/core/BufferGeometry.js

+ 1 - 1
src/core/BufferGeometry.js

@@ -1028,7 +1028,7 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
 			var oldAttribute = this.getAttribute( name );
 			var attribute;
 
-			var buffer = new attribute.array.constructor( attrArrays[ name ] );
+			var buffer = new oldAttribute.array.constructor( attrArrays[ name ] );
 			if ( oldAttribute.isInterleavedBufferAttribute ) {
 
 				attribute = new THREE.BufferAttribute( buffer, oldAttribute.itemSize, oldAttribute.itemSize );