Browse Source

Merge pull request #5254 from sebavan/master

Fix Code Action Serializer
David Catuhe 7 years ago
parent
commit
e421739e28
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Actions/babylon.actionManager.ts

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

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