Просмотр исходного кода

Merge pull request #10510 from Ludobaka/fix_BufferAttribute_clone

Fixed cloning BufferAttribute
Mr.doob 9 лет назад
Родитель
Сommit
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号