Procházet zdrojové kódy

Fixed cloning BufferAttribute

Ludovic Bailly před 8 roky
rodič
revize
534e559ccc
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/core/BufferAttribute.js

+ 1 - 1
src/core/BufferAttribute.js

@@ -331,7 +331,7 @@ BufferAttribute.prototype = {
 
 	clone: function () {
 
-		return new this.constructor().copy( this );
+		return new this.constructor( this.array, this.itemSize ).copy( this );
 
 	}