Fix: ignore unavailable sockets linked to multi-input socket

Differential Revision: https://developer.blender.org/D16784
This commit is contained in:
Iliya Katueshenock 2022-12-15 19:32:30 +01:00 committed by Hans Goudey
parent cc9d9c7724
commit f1b16f3ceb
1 changed files with 4 additions and 3 deletions

View File

@ -1148,10 +1148,11 @@ struct GeometryNodesLazyFunctionGraphBuilder {
if (multi_input_link == link) {
break;
}
if (!(multi_input_link->is_muted() ||
nodeIsDanglingReroute(&btree_, multi_input_link->fromnode))) {
link_index++;
if (multi_input_link->is_muted() || !multi_input_link->fromsock->is_available() ||
nodeIsDanglingReroute(&btree_, multi_input_link->fromnode)) {
continue;
}
link_index++;
}
if (to_bsocket.owner_node().is_muted()) {
if (link_index == 0) {