Explorar o código

fix: node-reroute colors set incorrectly

Joseph Brandenburg hai 6 meses
pai
achega
0bb1af617a
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      utilities.py

+ 2 - 0
utilities.py

@@ -31,6 +31,8 @@ def socket_seek(start_link, links):
     while(link.from_socket):
         for newlink in links:
             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]:
                     link=newlink; break
         else: