Selaa lähdekoodia

Fix: ui updates flip the value of Enable Socket

Joseph Brandenburg 6 kuukautta sitten
vanhempi
commit
9f4fa7bf42
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      base_definitions.py

+ 1 - 0
base_definitions.py

@@ -743,6 +743,7 @@ class MantisNode:
         change_handled=False
         if socket_name is None: socket_name = ui_socket.name
         value = ui_socket.default_value
+        if socket_name == 'Enable': value = not value
         try:
             self.parameters[ui_socket.name]=value
         except KeyError: