Browse Source

Merge pull request #3044 from julien-moreau/master

 Now use "diffuse" instead of "diffuseColor" in materials in order to resolve conflicts with other materials when serializing/parsing
David Catuhe 7 years ago
parent
commit
58582a269a

+ 1 - 1
materialsLibrary/src/cell/babylon.cellMaterial.ts

@@ -32,7 +32,7 @@ module BABYLON {
         @expandToProperty("_markAllSubMeshesAsTexturesDirty")
         public diffuseTexture: BaseTexture;
 
-        @serializeAsColor3("diffuseColor")
+        @serializeAsColor3("diffuse")
         public diffuseColor = new Color3(1, 1, 1);
 
         @serialize("computeHighLevel")

+ 1 - 1
materialsLibrary/src/fire/babylon.fireMaterial.ts

@@ -38,7 +38,7 @@ module BABYLON {
         @expandToProperty("_markAllSubMeshesAsTexturesDirty")
         public opacityTexture: Nullable<BaseTexture>;
         
-        @serialize("diffuseColor")
+        @serializeAsColor3("diffuse")
         public diffuseColor = new Color3(1, 1, 1);
         
         @serialize()

+ 1 - 1
materialsLibrary/src/simple/babylon.simpleMaterial.ts

@@ -29,7 +29,7 @@ module BABYLON {
         @expandToProperty("_markAllSubMeshesAsTexturesDirty")
         public diffuseTexture: BaseTexture;
 
-        @serializeAsColor3("diffuseColor")
+        @serializeAsColor3("diffuse")
         public diffuseColor = new Color3(1, 1, 1);
         
         @serialize("disableLighting")