Sfoglia il codice sorgente

fix: node-reroute colors set incorrectly

Joseph Brandenburg 6 mesi fa
parent
commit
0bb1af617a
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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: