diff options
author | Hans Goudey <h.goudey@me.com> | 2022-03-25 06:17:54 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-03-25 06:17:54 +0300 |
commit | 83c99ccb2169b5cd76952e2ee80b4f7a6716bceb (patch) | |
tree | f1439d1ca417070261e7eb13db7f5edbcddb225f /source | |
parent | 797a1356caadc8df4b81d065d68dcc2ae4ce8f4b (diff) |
Cleanup: Use more specific variable name
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/curve_bezier.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/curve_bezier.cc b/source/blender/blenkernel/intern/curve_bezier.cc index 52a2674ab3d..c02555dcf6a 100644 --- a/source/blender/blenkernel/intern/curve_bezier.cc +++ b/source/blender/blenkernel/intern/curve_bezier.cc @@ -121,8 +121,8 @@ void calculate_evaluated_positions(const Span<float3> positions, }); /* Evaluate the final cyclic segment if necessary. */ - const IndexRange evaluated_range = offsets_to_range(evaluated_offsets, positions.size() - 2); - if (evaluated_range.size() == 1) { + const IndexRange last_segment_points = offsets_to_range(evaluated_offsets, positions.size() - 2); + if (last_segment_points.size() == 1) { evaluated_positions.last() = positions.last(); } else { @@ -130,7 +130,7 @@ void calculate_evaluated_positions(const Span<float3> positions, handles_right.last(), handles_left.first(), positions.first(), - evaluated_positions.slice(evaluated_range)); + evaluated_positions.slice(last_segment_points)); } } |