Cleanup: Use node topology cache instead of SOCK_IS_LINKED flag

This commit is contained in:
Hans Goudey
2024-12-07 16:46:24 -05:00
parent 793c9a8984
commit ba72ac2cf7
2 changed files with 5 additions and 2 deletions

View File

@@ -47,7 +47,10 @@ static void draw_node_input(bContext *C,
if (!socket.is_available()) {
return;
}
if ((socket.flag & (SOCK_IS_LINKED | SOCK_HIDE_VALUE)) != 0) {
if (socket.is_directly_linked()) {
return;
}
if (socket.flag & SOCK_HIDE_VALUE) {
return;
}
if (socket.typeinfo->draw == nullptr) {

View File

@@ -1333,7 +1333,7 @@ static void std_node_socket_draw(
}
if ((sock->in_out == SOCK_OUT) || (sock->flag & SOCK_HIDE_VALUE) ||
((sock->flag & SOCK_IS_LINKED) && !all_links_muted(*sock)))
(sock->is_directly_linked() && !all_links_muted(*sock)))
{
draw_node_socket_without_value(layout, sock, text);
return;