diff options
author | Hans Goudey <h.goudey@me.com> | 2022-03-11 23:55:42 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-03-11 23:55:42 +0300 |
commit | db7c4d7a1cf3a4aab7d40df9de5f3f3d33e88cb6 (patch) | |
tree | d1008b32109f94219bc12c6f40baab9aa0387896 /source/blender/makesdna | |
parent | bd9f94e91720e6d2ce5308344e83c5a787351669 (diff) |
Cleanup: Use new enum for NURBS curve knots modes
Move the definition of the enum to `Curves` DNA, since the values
will be saved in files, and ongoing development needs to use this.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_curves_types.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_curves_types.h b/source/blender/makesdna/DNA_curves_types.h index d3e69315265..f1626781fc6 100644 --- a/source/blender/makesdna/DNA_curves_types.h +++ b/source/blender/makesdna/DNA_curves_types.h @@ -40,6 +40,14 @@ typedef enum HandleType { BEZIER_HANDLE_ALIGN = 3, } HandleType; +/** Method used to calculate a NURBS curve's knot vector. */ +typedef enum KnotsMode { + NURBS_KNOT_MODE_NORMAL = 0, + NURBS_KNOT_MODE_ENDPOINT = 1, + NURBS_KNOT_MODE_BEZIER = 2, + NURBS_KNOT_MODE_ENDPOINT_BEZIER = 3, +} KnotsMode; + /** * A reusable data structure for geometry consisting of many curves. All control point data is * stored contiguously for better efficiency. Data for each curve is stored as a slice of the |