Explorar o código

Merge pull request #13824 from takahirox/BufferAttributeNameCopy

Fix missing name copy in BufferAttribute.copy
Mr.doob %!s(int64=7) %!d(string=hai) anos
pai
achega
7eda1af2e2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;