Pārlūkot izejas kodu

Update mode to prevent calls

Yentl Van Tendeloo 8 gadi atpakaļ
vecāks
revīzija
5f29318a0b
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      wrappers/modelverse.py

+ 4 - 0
wrappers/modelverse.py

@@ -565,7 +565,9 @@ def transformation_execute_AL(operation_name, input_models_dict, output_models_d
     if statechart is not None:
         # We are to delegate this information to another statechart, which wants interaction
         # As such, we continue on a different thread, where we pipe the information, and let this call return immediately
+        mode = MODE_DIALOG
         _exec_on_statechart(statechart)
+        mode = MODE_MODELLING
         return None
     else:
         # No statechart associated, so just wait until we are finished
@@ -616,7 +618,9 @@ def transformation_execute_MT(operation_name, input_models_dict, output_models_d
     if statechart is not None:
         # We are to delegate this information to another statechart, which wants interaction
         # As such, we continue on a different thread, where we pipe the information, and let this call return immediately
+        mode = MODE_DIALOG
         _exec_on_statechart(statechart)
+        mode = MODE_MODELLING
         return None
     else:
         # No statechart associated, so just wait until we are finished