Explorar el Código

Fixed InstancedBufferAttribute clone.

Mr.doob hace 10 años
padre
commit
368a8203ea
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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号