[Bf-blender-cvs] [5ae666c2cc6] geometry-nodes: Geometry Nodes: automatically reconnect when swapping inputs

Jacques Lucke noreply at git.blender.org
Tue Dec 1 15:04:53 CET 2020


Commit: 5ae666c2cc67be0e5ffb897c1ff48fe434d7dbc6
Author: Jacques Lucke
Date:   Tue Dec 1 15:04:45 2020 +0100
Branches: geometry-nodes
https://developer.blender.org/rB5ae666c2cc67be0e5ffb897c1ff48fe434d7dbc6

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/geometry/node_geometry_util.cc

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

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