diff options
Diffstat (limited to 'source/blender/nodes/shader/node_shader_util.cc')
-rw-r--r-- | source/blender/nodes/shader/node_shader_util.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/nodes/shader/node_shader_util.cc b/source/blender/nodes/shader/node_shader_util.cc index 8b7e72fbcc9..f2464d4c1b4 100644 --- a/source/blender/nodes/shader/node_shader_util.cc +++ b/source/blender/nodes/shader/node_shader_util.cc @@ -25,6 +25,8 @@ #include "node_shader_util.h" +#include "NOD_socket_search_link.hh" + #include "node_exec.h" bool sh_node_poll_default(bNodeType *UNUSED(ntype), bNodeTree *ntree, const char **r_disabled_hint) @@ -54,12 +56,14 @@ void sh_node_type_base( ntype->poll = sh_node_poll_default; ntype->insert_link = node_insert_link_default; + ntype->gather_link_search_ops = blender::nodes::search_link_ops_for_basic_node; } void sh_fn_node_type_base(bNodeType *ntype, int type, const char *name, short nclass, short flag) { sh_node_type_base(ntype, type, name, nclass, flag); ntype->poll = sh_fn_poll_default; + ntype->gather_link_search_ops = blender::nodes::search_link_ops_for_basic_node; } /* ****** */ |