未验证 提交 6f98352a 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #21028 from Mugen87/dev44

InstancedMesh: Honor instanceColor in copy().
......@@ -33,6 +33,9 @@ InstancedMesh.prototype = Object.assign( Object.create( Mesh.prototype ), {
Mesh.prototype.copy.call( this, source );
this.instanceMatrix.copy( source.instanceMatrix );
if ( source.instanceColor !== null ) this.instanceColor = source.instanceColor.clone();
this.count = source.count;
return this;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册