瀏覽代碼

Fixed cloning BufferAttribute

Ludovic Bailly 8 年之前
父節點
當前提交
534e559ccc
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 );
 
 	}