Browse Source

Merge pull request #7828 from Mugen87/dev

Add "colorWrite" to material copy method
Mr.doob 9 years ago
parent
commit
eee97a6bca
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/materials/Material.js

+ 2 - 0
src/materials/Material.js

@@ -257,6 +257,8 @@ THREE.Material.prototype = {
 		this.depthTest = source.depthTest;
 		this.depthTest = source.depthTest;
 		this.depthWrite = source.depthWrite;
 		this.depthWrite = source.depthWrite;
 
 
+		this.colorWrite = source.colorWrite;
+
 		this.precision = source.precision;
 		this.precision = source.precision;
 
 
 		this.polygonOffset = source.polygonOffset;
 		this.polygonOffset = source.polygonOffset;