瀏覽代碼

Merge pull request #13824 from takahirox/BufferAttributeNameCopy

Fix missing name copy in BufferAttribute.copy
Mr.doob 7 年之前
父節點
當前提交
7eda1af2e2
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/core/BufferAttribute.js

+ 1 - 0
src/core/BufferAttribute.js

@@ -68,6 +68,7 @@ Object.assign( BufferAttribute.prototype, {
 
 	copy: function ( source ) {
 
+		this.name = source.name;
 		this.array = new source.array.constructor( source.array );
 		this.itemSize = source.itemSize;
 		this.count = source.count;