[Bf-blender-cvs] [8522b1b6fbf] master: Geometry Nodes: automatically reconnect when swapping inputs

Jacques Lucke noreply at git.blender.org
Wed Dec 2 16:38:00 CET 2020


Commit: 8522b1b6fbfd2590dab4ed4de3153d45a81f0371
Author: Jacques Lucke
Date:   Wed Dec 2 16:31:06 2020 +0100
Branches: master
https://developer.blender.org/rB8522b1b6fbfd2590dab4ed4de3153d45a81f0371

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.

===================================================================

M	source/blender/nodes/function/node_function_util.cc
M	source/blender/nodes/geometry/node_geometry_util.cc

===================================================================

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;
 }



More information about the Bf-blender-cvs mailing list