Explorar el Código

Fixed cloning BufferAttribute

Ludovic Bailly hace 8 años
padre
commit
534e559ccc
Se han modificado 1 ficheros con 1 adiciones y 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 );
 
 	}