mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T93555: crash when muting nodes with multiple internal links
The crash happened because I was incorrectly and inconsistently assuming that a socket is part of at most one internal link. However, this is not the case. In geometry nodes, an input socket can be internally linked to multiple output sockets. In the general case, an output could also be linked to multiple input sockets, even though we don't have that in Blender yet. Dalai gave green light to cherry pick this fix for 3.0.
This commit is contained in:
parent
594656e7a3
commit
68e3755209
2 changed files with 0 additions and 2 deletions
|
|
@ -281,7 +281,6 @@ void DOutputSocket::foreach_target_socket(ForeachTargetSocketFn target_fn,
|
|||
mute_output.foreach_target_socket(target_fn, path_info);
|
||||
path_info.sockets.pop_last();
|
||||
path_info.sockets.pop_last();
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (linked_node->is_group_output_node()) {
|
||||
|
|
|
|||
|
|
@ -262,7 +262,6 @@ void InputSocketRef::foreach_logical_origin(
|
|||
skipped_fn.call_safe(origin);
|
||||
skipped_fn.call_safe(mute_input);
|
||||
mute_input.foreach_logical_origin(origin_fn, skipped_fn, true, seen_sockets_stack);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue