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
8831c6f056
commit
c0df88f3b5
|
@ -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…
Reference in New Issue