Преглед изворни кода

Merge pull request #10510 from Ludobaka/fix_BufferAttribute_clone

Fixed cloning BufferAttribute
Mr.doob пре 9 година
родитељ
комит
468780fee2
1 измењених фајлова са 1 додато и 1 уклоњено
  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 );
 
 	}
 

粤ICP备19079148号