Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/curve_bezier.cc
| Context not available. | |||||
| handle_types_left[segment_index + 1] == BEZIER_HANDLE_VECTOR; | handle_types_left[segment_index + 1] == BEZIER_HANDLE_VECTOR; | ||||
| } | } | ||||
| bool last_cylic_segment_is_vector(const Span<int8_t> handle_types_left, | bool last_cyclic_segment_is_vector(const Span<int8_t> handle_types_left, | ||||
| const Span<int8_t> handle_types_right) | const Span<int8_t> handle_types_right) | ||||
| { | { | ||||
| return handle_types_right.last() == BEZIER_HANDLE_VECTOR && | return handle_types_right.last() == BEZIER_HANDLE_VECTOR && | ||||
| handle_types_left.first() == BEZIER_HANDLE_VECTOR; | handle_types_left.first() == BEZIER_HANDLE_VECTOR; | ||||
| Context not available. | |||||
| } | } | ||||
| if (cyclic) { | if (cyclic) { | ||||
| offset += last_cylic_segment_is_vector(handle_types_left, handle_types_right) ? 1 : resolution; | offset += last_cyclic_segment_is_vector(handle_types_left, handle_types_right) ? 1 : resolution; | ||||
| } | } | ||||
| else { | else { | ||||
| offset++; | offset++; | ||||
| Context not available. | |||||