diff options
author | Jacques Lucke <jacques@blender.org> | 2022-03-22 16:41:21 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-03-22 16:41:43 +0300 |
commit | e0ce1c45f840bac0b8001ea9f70b0491f8cc04b6 (patch) | |
tree | 2969d6a71f0ae00c319def6f03839448d9d5694e /source | |
parent | 3b5224b57c3cfc39a7998ecfc482e13bd6940e68 (diff) |
Fix T96577: setting curve handles not working correctly with multiple curves
Differential Revision: https://developer.blender.org/D14409
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_set_curve_handles.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_set_curve_handles.cc b/source/blender/nodes/geometry/nodes/node_geo_set_curve_handles.cc index 301410f5126..271dd824d27 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_set_curve_handles.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_set_curve_handles.cc @@ -106,10 +106,12 @@ static void set_position_in_component(const GeometryNodeCurveHandleMode mode, for (const int i : bezier.positions().index_range()) { if (current_mask < selection.size() && selection[current_mask] == current_point) { if (mode & GEO_NODE_CURVE_HANDLE_LEFT) { - bezier.set_handle_position_left(i, positions_input[i] + offsets_input[i]); + bezier.set_handle_position_left( + i, positions_input[current_point] + offsets_input[current_point]); } else { - bezier.set_handle_position_right(i, positions_input[i] + offsets_input[i]); + bezier.set_handle_position_right( + i, positions_input[current_point] + offsets_input[current_point]); } current_mask++; } |