Skip to content

Commit 86e82cb

Browse files
committed
InstancedMesh: Honor instanceColor in copy().
1 parent b4332dc commit 86e82cb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/objects/InstancedMesh.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ InstancedMesh.prototype = Object.assign( Object.create( Mesh.prototype ), {
3333
Mesh.prototype.copy.call( this, source );
3434

3535
this.instanceMatrix.copy( source.instanceMatrix );
36+
37+
if ( source.instanceColor !== null ) this.instanceColor = source.instanceColor.clone();
38+
3639
this.count = source.count;
3740

3841
return this;

0 commit comments

Comments
 (0)