Browse Source

update clone MeshFaceMaterial

gero3 12 years ago
parent
commit
6430256730
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/materials/MeshFaceMaterial.js

+ 5 - 2
src/materials/MeshFaceMaterial.js

@@ -9,7 +9,10 @@ THREE.MeshFaceMaterial = function ( materials ) {
 };
 
 THREE.MeshFaceMaterial.prototype.clone = function () {
-
-	return new THREE.MeshFaceMaterial();
+	
+	//TODO do we need to clone the materials in the array also?? 
+	var material = new THREE.MeshFaceMaterial();
+	material.materials = this.materials;
+	return material;
 
 };