Pārlūkot izejas kodu

Fix: Schema dependencies modified by Choose Nearest

Joseph Brandenburg 6 mēneši atpakaļ
vecāks
revīzija
53191f2c46
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      misc_nodes.py

+ 4 - 0
misc_nodes.py

@@ -135,6 +135,8 @@ def array_choose_relink(node, indices, array_input, output, ):
         for l in keep_links:
             l.from_node.outputs[l.from_socket].connect(to_node, link.to_socket)
         link.die()
+        if to_node.node_type == "DUMMY_SCHEMA":
+            continue # can't init the dependencies here... trust it will happen elsewhere
         init_dependencies(to_node)
     for n in init_my_connections:
         init_connections(n) # I am not 100% sure this is necessary.
@@ -157,6 +159,8 @@ def array_choose_data(node, data, output):
             # Make a link from the new output.
             node.outputs[output+"."+str(i).zfill(4)].connect(to_node, link.to_socket)
         link.die()
+        if to_node.node_type == "DUMMY_SCHEMA":
+            continue # can't init the dependencies here... trust it will happen elsewhere
         init_dependencies(to_node)
     init_connections(node)# I am not 100% sure this is necessary.
     node.hierarchy_connections, node.connections = [], []