Cleanup: Use node topology cache instead of SOCK_IS_LINKED flag
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user