提交 187d2f8f 编写于 作者: D Daniel Hritzkiv

Fixed reference to geometry in clone method of InstancedBufferGeometry

上级 8d3f1ce6
......@@ -32,14 +32,14 @@ THREE.InstancedBufferGeometry.prototype.copy = function ( source ) {
for ( var attr in source.attributes ) {
var sourceAttr = source.attributes[ attr ];
geometry.addAttribute( attr, sourceAttr.clone() );
this.addAttribute( attr, sourceAttr.clone() );
}
for ( var i = 0, il = source.drawcalls.length; i < il; i ++ ) {
var offset = source.drawcalls[ i ];
geometry.addDrawCall( offset.start, offset.count, offset.index, offset.instances );
this.addDrawCall( offset.start, offset.count, offset.index, offset.instances );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册