Fix #148250: Nodes: connect-to-output does not take inferenced visibility into account

Use the new `is_icon_visible` option which handles the availability, user-hidden
and inferenced visibility automatically.

Pull Request: https://projects.blender.org/blender/blender/pulls/148722
This commit is contained in:
Jacques Lucke 2025-10-24 14:56:44 +02:00
parent ce56f75433
commit b12cc91f10

View file

@ -74,7 +74,7 @@ def get_internal_socket(socket):
def is_visible_socket(socket):
return not socket.hide and socket.enabled and socket.type != 'CUSTOM'
return socket.is_icon_visible and socket.type != 'CUSTOM'
def is_viewer_link(link, output_node):