Fix #105198: Ensure Frame and Reroute nodes are searchable #105201

Merged
Jesse Yurkovich merged 1 commits from deadpin/blender:fix-104794 into main 2023-02-25 21:32:35 +01:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit f5cfc48d75 - Show all commits

View File

@ -29,6 +29,7 @@
#include "MEM_guardedalloc.h"
#include "NOD_add_node_search.hh"
#include "NOD_common.h"
#include "NOD_node_declaration.hh"
#include "NOD_register.hh"
@ -264,6 +265,7 @@ void register_node_type_frame()
node_type_base(ntype, NODE_FRAME, "Frame", NODE_CLASS_LAYOUT);
ntype->initfunc = node_frame_init;
ntype->gather_add_node_search_ops = blender::nodes::search_node_add_ops_for_basic_node;
node_type_storage(ntype, "NodeFrame", node_free_standard_storage, node_copy_standard_storage);
node_type_size(ntype, 150, 100, 0);
ntype->flag |= NODE_BACKGROUND;
@ -294,6 +296,7 @@ void register_node_type_reroute()
node_type_base(ntype, NODE_REROUTE, "Reroute", NODE_CLASS_LAYOUT);
ntype->initfunc = node_reroute_init;
ntype->gather_add_node_search_ops = blender::nodes::search_node_add_ops_for_basic_node;
nodeRegisterType(ntype);
}