From 8522b1b6fbfd2590dab4ed4de3153d45a81f0371 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Wed, 2 Dec 2020 16:31:06 +0100 Subject: Geometry Nodes: automatically reconnect when swapping inputs This makes it easier to swap the inputs to the Join Geometry node. The behavior is the same as in the Math node. --- source/blender/nodes/function/node_function_util.cc | 1 + source/blender/nodes/geometry/node_geometry_util.cc | 1 + 2 files changed, 2 insertions(+) (limited to 'source/blender/nodes') diff --git a/source/blender/nodes/function/node_function_util.cc b/source/blender/nodes/function/node_function_util.cc index 1ed83e08ab1..827572d1069 100644 --- a/source/blender/nodes/function/node_function_util.cc +++ b/source/blender/nodes/function/node_function_util.cc @@ -28,4 +28,5 @@ void fn_node_type_base(bNodeType *ntype, int type, const char *name, short nclas node_type_base(ntype, type, name, nclass, flag); ntype->poll = fn_node_poll_default; ntype->update_internal_links = node_update_internal_links_default; + ntype->insert_link = node_insert_link_default; } diff --git a/source/blender/nodes/geometry/node_geometry_util.cc b/source/blender/nodes/geometry/node_geometry_util.cc index e360ced314f..41bdb1cfff0 100644 --- a/source/blender/nodes/geometry/node_geometry_util.cc +++ b/source/blender/nodes/geometry/node_geometry_util.cc @@ -27,4 +27,5 @@ void geo_node_type_base(bNodeType *ntype, int type, const char *name, short ncla node_type_base(ntype, type, name, nclass, flag); ntype->poll = geo_node_poll_default; ntype->update_internal_links = node_update_internal_links_default; + ntype->insert_link = node_insert_link_default; } -- cgit v1.2.3