Browse Source

Fix: Dependency detection fails for Schema

turns out links to schema are marked as non-hierarchy, who knew?
Joseph Brandenburg 6 tháng trước cách đây
mục cha
commit
dffb44acf3
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      readtree.py

+ 2 - 2
readtree.py

@@ -245,12 +245,12 @@ def get_schema_length_dependencies(node, all_nodes={}):
     if node.node_type == "DUMMY_SCHEMA":
         for item in node.prototype.node_tree.interface.items_tree:
             if item.item_type == 'PANEL': continue
-            if item.parent:# and item.parent.name == 'Array':
+            if item.parent:
                 prepare_links_to.append(item.identifier)
     def extend_dependencies_from_inputs(node):
         for inp in node.inputs.values():
             for l in inp.links:
-                if not l.is_hierarchy:
+                if not l.from_node in node.hierarchy_dependencies:
                     continue
                 if "MANTIS_AUTOGENERATED" in l.from_node.signature: 
                     deps.extend([l.from_node]) # why we need this lol