Przeglądaj źródła

Fixed cloning BufferAttribute

Ludovic Bailly 8 lat temu
rodzic
commit
534e559ccc
1 zmienionych plików z 1 dodań i 1 usunięć
  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 );
 
 	}