Browse Source

Fixed InstancedBufferAttribute clone.

Mr.doob 11 năm trước cách đây
mục cha
commit
368a8203ea
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/core/InstancedBufferAttribute.js

+ 1 - 1
src/core/InstancedBufferAttribute.js

@@ -16,6 +16,6 @@ THREE.InstancedBufferAttribute.prototype.constructor = THREE.InstancedBufferAttr
 
 THREE.InstancedBufferAttribute.prototype.clone = function () {
 
-	return new THREE.InstancedBufferAttribute(new this.array.constructor(this.array), this.itemSize, meshPerAttribute, dynamic);
+	return new THREE.InstancedBufferAttribute( new this.array.constructor( this.array ), this.itemSize, this.meshPerAttribute, this.dynamic );
 
 };

粤ICP备19079148号