From ddebb0f7833a1caa35862b2d1d7e692359673277 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Mon, 30 May 2022 14:05:15 +0200 Subject: Cleanup: Fix typo Contributed by @luzpaz Differential Revision: https://developer.blender.org/D15058 --- source/blender/blenkernel/BKE_curves.hh | 6 +++--- source/blender/blenkernel/intern/curve_bezier.cc | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'source') diff --git a/source/blender/blenkernel/BKE_curves.hh b/source/blender/blenkernel/BKE_curves.hh index 153a1c6a1f4..632fd5ebc49 100644 --- a/source/blender/blenkernel/BKE_curves.hh +++ b/source/blender/blenkernel/BKE_curves.hh @@ -453,7 +453,7 @@ void calculate_tangents(Span positions, bool is_cyclic, MutableSpan tangents, bool cyclic, MutableSpan normals); @@ -483,10 +483,10 @@ bool segment_is_vector(Span handle_types_left, int segment_index); /** - * Return true if the curve's last cylic segment has a vector type. + * Return true if the curve's last cyclic segment has a vector type. * This only makes a difference in the shape of cyclic curves. */ -bool last_cylic_segment_is_vector(Span handle_types_left, Span handle_types_right); +bool last_cyclic_segment_is_vector(Span handle_types_left, Span handle_types_right); /** * Return true if the handle types at the index are free (#BEZIER_HANDLE_FREE) or vector diff --git a/source/blender/blenkernel/intern/curve_bezier.cc b/source/blender/blenkernel/intern/curve_bezier.cc index 13695525616..33888aa071c 100644 --- a/source/blender/blenkernel/intern/curve_bezier.cc +++ b/source/blender/blenkernel/intern/curve_bezier.cc @@ -20,8 +20,8 @@ bool segment_is_vector(const Span handle_types_left, handle_types_left[segment_index + 1] == BEZIER_HANDLE_VECTOR; } -bool last_cylic_segment_is_vector(const Span handle_types_left, - const Span handle_types_right) +bool last_cyclic_segment_is_vector(const Span handle_types_left, + const Span handle_types_right) { return handle_types_right.last() == BEZIER_HANDLE_VECTOR && handle_types_left.first() == BEZIER_HANDLE_VECTOR; @@ -49,7 +49,7 @@ void calculate_evaluated_offsets(const Span handle_types_left, } 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 { offset++; -- cgit v1.2.3