Browse Source

Fixed InstancedBufferAttribute clone.

Mr.doob 10 years ago
parent
commit
368a8203ea
1 changed files with 1 additions and 1 deletions
  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 () {
 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 );
 
 
 };
 };