mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix: Link drag search crash with incorrect socket name in switch node
When dragging out a boolean noodle, releasing and choosing 'switch > Switch' from the search popup, the code would mistakenly search for 'Start' instead of 'Switch'. Also the function called was not exactly the right one, leading to the node being marked as invalid. Reviewed By: Jacques Lucke Differential Revision: https://developer.blender.org/D16512
This commit is contained in:
parent
981245fc6f
commit
e257e2e075
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ static void node_gather_link_searches(GatherLinkSearchOpParams ¶ms)
|
|||
if (params.other_socket().type == SOCK_BOOLEAN) {
|
||||
params.add_item(IFACE_("Switch"), [](LinkSearchOpParams ¶ms) {
|
||||
bNode &node = params.add_node("GeometryNodeSwitch");
|
||||
params.connect_available_socket(node, "Start");
|
||||
params.update_and_connect_available_socket(node, "Switch");
|
||||
});
|
||||
}
|
||||
params.add_item(IFACE_("False"), [](LinkSearchOpParams ¶ms) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue