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:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user