Przeglądaj źródła

fix CTD from insert_link callback

Joseph Brandenburg 1 tydzień temu
rodzic
commit
25ddc7b01a
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      base_definitions.py

+ 2 - 2
base_definitions.py

@@ -112,8 +112,8 @@ def update_reroute_cache_item_source_recursively(reroute, tree_cache, source):
                 )
             tree_cache[reroute.name] = cache_object
         cache_object.source = source
-        if reroute.outputs[0].is_linked: # reroutes are always single-output
-            for l in reroute.outputs[0].links: # with potentially many links
+        if rr_links := reroute.outputs[0].links: # reroutes are always single-output
+            for l in rr_links:                   # with potentially many links
                 if l.to_node.bl_idname == 'NodeReroute':
                     reroutes.add(l.to_node)