فهرست منبع

Merge pull request #6150 from matdavena/master

ShaderMaterial serialization fix
David Catuhe 6 سال پیش
والد
کامیت
aa4740c3dc
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/Materials/shaderMaterial.ts

+ 1 - 1
src/Materials/shaderMaterial.ts

@@ -733,7 +733,7 @@ export class ShaderMaterial extends Material {
      */
     public serialize(): any {
         var serializationObject = SerializationHelper.Serialize(this);
-        serializationObject.customType = "ShaderMaterial";
+        serializationObject.customType = "BABYLON.ShaderMaterial";
 
         serializationObject.options = this._options;
         serializationObject.shaderPath = this._shaderPath;