Explorar o código

Fixed cloning BufferAttribute

Ludovic Bailly %!s(int64=8) %!d(string=hai) anos
pai
achega
534e559ccc
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 );
 
 	}