Explorar el Código

Fix: ui updates flip the value of Enable Socket

Joseph Brandenburg hace 6 meses
padre
commit
9f4fa7bf42
Se han modificado 1 ficheros con 1 adiciones y 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: