|
@@ -10,6 +10,8 @@ THREE.MeshFaceMaterial = function ( materials ) {
|
|
|
|
|
|
this.materials = materials instanceof Array ? materials : [];
|
|
|
|
|
|
+ this.visible = true;
|
|
|
+
|
|
|
};
|
|
|
|
|
|
THREE.MeshFaceMaterial.prototype = {
|
|
@@ -35,6 +37,8 @@ THREE.MeshFaceMaterial.prototype = {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ output.visible = this.visible;
|
|
|
+
|
|
|
return output;
|
|
|
|
|
|
},
|
|
@@ -49,6 +53,8 @@ THREE.MeshFaceMaterial.prototype = {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ material.visible = this.visible;
|
|
|
+
|
|
|
return material;
|
|
|
|
|
|
}
|