Fix: Curves last evaluated segment is empty

A mistake in 8538c69921. The offsets include the segment at the
corresponding index, but the evaluated offset calculation was adjusting
the offset for the second to last segment.
This commit is contained in:
Hans Goudey 2022-03-18 12:05:14 -05:00
parent 5d7f4f2cab
commit 8146c996eb
1 changed files with 0 additions and 1 deletions

View File

@ -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++;