Преглед изворни кода

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

Garrett Johnson пре 6 година
родитељ
комит
c20dff3314
1 измењених фајлова са 1 додато и 1 уклоњено
  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 );