Skip to content

Commit 8d40dba

Browse files
gero3mrdoob
authored andcommitted
make clone of materials
1 parent 1777dea commit 8d40dba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/materials/MeshFaceMaterial.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ THREE.MeshFaceMaterial = function ( materials ) {
1111
THREE.MeshFaceMaterial.prototype.clone = function () {
1212

1313
var material = new THREE.MeshFaceMaterial();
14-
material.materials = this.materials;
14+
material.materials = this.materials.slice(0);
1515
return material;
1616

1717
};

0 commit comments

Comments
 (0)