Browse Source

Fixed cloning BufferAttribute

Ludovic Bailly 8 years ago
parent
commit
534e559ccc
1 changed files with 1 additions and 1 deletions
  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 );
 
 	}