David Catuhe преди 9 години
родител
ревизия
ae776114fc
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      materialsLibrary/materials/lava/babylon.lavaMaterial.ts
  2. 1 1
      materialsLibrary/materials/terrain/babylon.terrainMaterial.ts

+ 1 - 1
materialsLibrary/materials/lava/babylon.lavaMaterial.ts

@@ -558,7 +558,7 @@ module BABYLON {
 
         public serialize(): any {
             var serializationObject = super.serialize();
-            serializationObject.customType = "lava";
+            serializationObject.customType      = "BABYLON.LavaMaterial";
             serializationObject.diffuseColor    = this.diffuseColor.asArray();
             serializationObject.fogColor        = this.fogColor.asArray();
             serializationObject.speed           = this.speed;

+ 1 - 1
materialsLibrary/materials/terrain/babylon.terrainMaterial.ts

@@ -576,7 +576,7 @@ module BABYLON {
 		public serialize(): any {
 		
             var serializationObject = super.serialize();
-            serializationObject.customType 		= "terrain";
+            serializationObject.customType      = "BABYLON.TerrainMaterial";
             serializationObject.diffuseColor    = this.diffuseColor.asArray();
 			serializationObject.specularColor   = this.specularColor.asArray();
             serializationObject.specularPower   = this.specularPower;