diff options
author | Hans Goudey <h.goudey@me.com> | 2022-04-09 01:50:00 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-04-09 01:50:00 +0300 |
commit | 502d16e66788487113ba18f85f44ebd7eff6c492 (patch) | |
tree | d03f9dddde8937c1013d9316e8461eaa2c284102 /source/blender/makesdna | |
parent | 4f961901226470446bb6de9ac3d8469ff3453671 (diff) |
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
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_curves_types.h | 6 |
1 files changed, 3 insertions, 3 deletions
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. |