Explorar o código

Merge pull request #10510 from Ludobaka/fix_BufferAttribute_clone

Fixed cloning BufferAttribute
Mr.doob %!s(int64=8) %!d(string=hai) anos
pai
achega
468780fee2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 );
 
 	}