Przeglądaj źródła

Merge pull request #5254 from sebavan/master

Fix Code Action Serializer
David Catuhe 7 lat temu
rodzic
commit
e421739e28
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/Actions/babylon.actionManager.ts

+ 1 - 1
src/Actions/babylon.actionManager.ts

@@ -501,7 +501,7 @@
                         var parameter = <any>{};
                         var parameter = <any>{};
                         Tools.DeepCopy(triggerOptions.parameter, parameter, ["mesh"]);
                         Tools.DeepCopy(triggerOptions.parameter, parameter, ["mesh"]);
 
 
-                        if (triggerOptions.parameter.mesh) {
+                        if (triggerOptions.parameter && triggerOptions.parameter.mesh) {
                             parameter._meshId = triggerOptions.parameter.mesh.id;
                             parameter._meshId = triggerOptions.parameter.mesh.id;
                         }
                         }