Browse Source

fix: node-reroute colors set incorrectly

Joseph Brandenburg 6 months ago
parent
commit
0bb1af617a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      utilities.py

+ 2 - 0
utilities.py

@@ -31,6 +31,8 @@ def socket_seek(start_link, links):
     while(link.from_socket):
     while(link.from_socket):
         for newlink in links:
         for newlink in links:
             if link.from_socket.node.inputs:
             if link.from_socket.node.inputs:
+                if link.from_node.bl_idname != 'NodeReroute':
+                    return link.from_socket
                 if newlink.to_socket == link.from_socket.node.inputs[0]:
                 if newlink.to_socket == link.from_socket.node.inputs[0]:
                     link=newlink; break
                     link=newlink; break
         else:
         else: