[Bf-blender-cvs] [e0ce1c45f84] master: Fix T96577: setting curve handles not working correctly with multiple curves
Jacques Lucke
noreply at git.blender.org
Tue Mar 22 14:41:59 CET 2022
Commit: e0ce1c45f840bac0b8001ea9f70b0491f8cc04b6
Author: Jacques Lucke
Date: Tue Mar 22 14:41:21 2022 +0100
Branches: master
https://developer.blender.org/rBe0ce1c45f840bac0b8001ea9f70b0491f8cc04b6
Fix T96577: setting curve handles not working correctly with multiple curves
Differential Revision: https://developer.blender.org/D14409
===================================================================
M source/blender/nodes/geometry/nodes/node_geo_set_curve_handles.cc
===================================================================
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++;
}
More information about the Bf-blender-cvs
mailing list