Fix #122356: Drag search crash connecting texture socket to switch node #122370

Closed
Pratik Borhade wants to merge 1 commits from PratikPB2123:122356-textsocket-crash into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

View File

@ -56,6 +56,10 @@ static void node_init(bNodeTree * /*tree*/, bNode *node)
static void node_gather_link_searches(GatherLinkSearchOpParams &params)
{
if (params.other_socket().type == SOCK_TEXTURE) {
return;
}
if (params.in_out() == SOCK_OUT) {
params.add_item(IFACE_("Output"), [](LinkSearchOpParams &params) {
bNode &node = params.add_node("GeometryNodeSwitch");