From 502d16e66788487113ba18f85f44ebd7eff6c492 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Fri, 8 Apr 2022 17:50:00 -0500 Subject: Fix: Various fixes and cleanups in new curves code - Use "curve" instead of "spline" in comments - Use non-plural variable names - Tag topology dirty after resolution modified rather than positions - Reorder enum values to change which value is zero (and the default) - Remove a duplicate unused variable --- source/blender/makesdna/DNA_curves_types.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_curves_types.h b/source/blender/makesdna/DNA_curves_types.h index 0aa4ebc61d0..bb53dbafdc8 100644 --- a/source/blender/makesdna/DNA_curves_types.h +++ b/source/blender/makesdna/DNA_curves_types.h @@ -51,8 +51,8 @@ typedef enum KnotsMode { /** Method used to calculate the normals of a curve's evaluated points. */ typedef enum NormalMode { - NORMAL_MODE_Z_UP = 0, - NORMAL_MODE_MINIMUM_TWIST = 1, + NORMAL_MODE_MINIMUM_TWIST = 0, + NORMAL_MODE_Z_UP = 1, } NormalMode; /** @@ -84,7 +84,7 @@ typedef struct CurvesGeometry { /** * The start index of each curve in the point data. The size of each curve can be calculated by * subtracting the offset from the next offset. That is valid even for the last curve because - * this array is allocated with a length one larger than the number of splines. This is allowed + * this array is allocated with a length one larger than the number of curves. This is allowed * to be null when there are no curves. * * \note This is *not* stored in #CustomData because its size is one larger than #curve_data. -- cgit v1.2.3