Browse Source

Fix: ui updates flip the value of Enable Socket

Joseph Brandenburg 6 tháng trước cách đây
mục cha
commit
9f4fa7bf42
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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: