소스 검색

Schema Solve: prepare missing dependencies

This is a bad way to fix what is probably an error in graph generation.
some nodes need to have their parents prepared, and the parents aren't in the graph
we solve this by additionally preparing nodes that have children in the solve_only_these
list.
I ran into this situation when adding the new Array Length and Choose Nearest nodes.
Probably I can fix this in another way, and should keep trying because I want
the node execution/parsing code to be as simple as possible.
Joseph Brandenburg 6 달 전
부모
커밋
50ec07e602
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      readtree.py

+ 3 - 2
readtree.py

@@ -362,8 +362,9 @@ def parse_tree(base_tree):
             continue
         # Check if this node, or any nodes that depend on it, are in the list.
         for child in [n]+ n.hierarchy_connections:
-            if child in solve_only_these: # removes the unneeded node from the solve-layer
-            continue
+            if child in solve_only_these: break
+            else: # removes the unneeded node from the solve-layer
+                continue
 
         if n.signature in all_schema.keys():
             for dep in n.hierarchy_dependencies: