Ver Fonte

variables in collection socket

also fixes unhandled property in i_o for B5.2
Joseph Brandenburg há 1 semana atrás
pai
commit
148500fa6d
3 ficheiros alterados com 3 adições e 3 exclusões
  1. 1 1
      execution/readtree.py
  2. 1 1
      utilities/i_o.py
  3. 1 1
      utilities/utilities.py

+ 1 - 1
execution/readtree.py

@@ -253,7 +253,7 @@ def node_scan_overlays(node, socket_id,):
                 base_value = interface_item.default_int
             case "FloatSocket":
                 base_value = interface_item.default_float
-            case "StringSocket":
+            case "StringSocket" | "BoneCollectionSocket":
                 base_value = interface_item.default_string
         if base_value:
             root_overlay_values[interface_item.name] = base_value

+ 1 - 1
utilities/i_o.py

@@ -47,7 +47,7 @@ prop_ignore = [ "__dict__", "__doc__", "__module__", "__weakref__",# "name",
                 # node stuff
                 "mantis_node_class_name", "color", "height", "initialized", "select",
                 "show_options", "show_preview", "show_texture", "use_custom_color",
-                "warning_propagation",
+                "warning_propagation", "panel_states",
                 # these are in Bone
                 "socket_count", "display_bb_settings", "display_def_settings",
                 "display_ik_settings", "display_vp_settings",

+ 1 - 1
utilities/utilities.py

@@ -992,7 +992,7 @@ def handle_overlay_detect(node, socket_id, socket_idname, value) -> str:
                 case "FloatSocket":
                     if socket_type in {int, float} and '$'+key == out_value:
                         out_value = socket_type(interface_item.default_float)
-                case "StringSocket":
+                case "StringSocket" | 'BoneCollectionSocket':
                     if socket_type == str:
                         out_value = socket_type(out_value.replace("$"+key, interface_item.default_string))