Skip to content

Commit 6f98352

Browse files
authored
Merge pull request #21028 from Mugen87/dev44
InstancedMesh: Honor instanceColor in copy().
2 parents b4332dc + 86e82cb commit 6f98352

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)