Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-03-18 20:05:14 +0300
committerHans Goudey <h.goudey@me.com>2022-03-18 20:05:14 +0300
commit8146c996ebd7cdb8ff4c2b0437ec1a344d191359 (patch)
tree92f055e153d704f296eed9e21d17173b68115651
parent5d7f4f2cab20a936df4bcdb60e9a6943d41566d3 (diff)
Fix: Curves last evaluated segment is empty
A mistake in 8538c69921662164. The offsets include the segment at the corresponding index, but the evaluated offset calculation was adjusting the offset for the second to last segment.
-rw-r--r--source/blender/blenkernel/intern/curve_bezier.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/curve_bezier.cc b/source/blender/blenkernel/intern/curve_bezier.cc
index 43c94fbcd95..52a2674ab3d 100644
--- a/source/blender/blenkernel/intern/curve_bezier.cc
+++ b/source/blender/blenkernel/intern/curve_bezier.cc
@@ -50,7 +50,6 @@ void calculate_evaluated_offsets(const Span<int8_t> handle_types_left,
if (cyclic) {
offset += last_cylic_segment_is_vector(handle_types_left, handle_types_right) ? 1 : resolution;
- evaluated_offsets.last(1) = offset;
}
else {
offset++;