Explorar o código

Fix: ui updates flip the value of Enable Socket

Joseph Brandenburg hai 6 meses
pai
achega
9f4fa7bf42
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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: