[Bf-blender-cvs] [8c1ddee10cf] master: Geometry Nodes: Set Handle Type Node: Left and right by default

Hans Goudey noreply at git.blender.org
Mon Jan 17 22:02:26 CET 2022


Commit: 8c1ddee10cfe11c2dba8a5005290db20546c2cb6
Author: Hans Goudey
Date:   Mon Jan 17 15:02:15 2022 -0600
Branches: master
https://developer.blender.org/rB8c1ddee10cfe11c2dba8a5005290db20546c2cb6

Geometry Nodes: Set Handle Type Node: Left and right by default

This node's UI uses a multi-select enum to allow adjusting the
type of both handle sides with the same node. Since usually the
user wants to affect both handles, and it's the multi-select behavior
isn't obvious, selecting both by default is an improvement.

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

M	source/blender/nodes/geometry/nodes/node_geo_curve_set_handles.cc

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

diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_set_handles.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_set_handles.cc
index b4ca51d0fa7..74bdce4cef3 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_curve_set_handles.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_curve_set_handles.cc
@@ -43,7 +43,7 @@ static void node_init(bNodeTree *UNUSED(tree), bNode *node)
   NodeGeometryCurveSetHandles *data = MEM_cnew<NodeGeometryCurveSetHandles>(__func__);
 
   data->handle_type = GEO_NODE_CURVE_HANDLE_AUTO;
-  data->mode = GEO_NODE_CURVE_HANDLE_LEFT;
+  data->mode = GEO_NODE_CURVE_HANDLE_LEFT | GEO_NODE_CURVE_HANDLE_RIGHT;
   node->storage = data;
 }



More information about the Bf-blender-cvs mailing list