2
0
Эх сурвалжийг харах

Merge pull request #10510 from Ludobaka/fix_BufferAttribute_clone

Fixed cloning BufferAttribute
Mr.doob 8 жил өмнө
parent
commit
468780fee2

+ 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 );
 
 	}