Browse Source

make clone of materials

gero3 12 years ago
parent
commit
8d40dba44b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/materials/MeshFaceMaterial.js

+ 1 - 1
src/materials/MeshFaceMaterial.js

@@ -11,7 +11,7 @@ THREE.MeshFaceMaterial = function ( materials ) {
 THREE.MeshFaceMaterial.prototype.clone = function () {
 	
 	var material = new THREE.MeshFaceMaterial();
-	material.materials = this.materials;
+	material.materials = this.materials.slice(0);
 	return material;
 
 };