Fix: incorrect detection of used sockets

This commit is contained in:
Jacques Lucke 2022-08-31 14:41:57 +02:00
parent 627e8ad682
commit 4b9d7b71e0
1 changed files with 1 additions and 1 deletions

View File

@ -1037,7 +1037,7 @@ class NodeTreeMainUpdater {
for (bNodeSocket *socket : tree.all_sockets()) {
socket->flag &= ~SOCK_IN_USE;
for (const bNodeLink *link : socket->directly_linked_links()) {
if ((link->flag & NODE_LINK_MUTED) != 0) {
if (!link->is_muted()) {
socket->flag |= SOCK_IN_USE;
break;
}