From 87a3bf33564b035e4c2400098ea4932d5dfdba5d Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Thu, 7 Apr 2022 18:10:05 -0500 Subject: Cleanup: Define new curves normal mode in DNA Don't include the tangent mode for now, since that was never implemented for geometry nodes curves. --- source/blender/makesdna/DNA_curves_types.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_curves_types.h b/source/blender/makesdna/DNA_curves_types.h index a1eefca4ab5..0aa4ebc61d0 100644 --- a/source/blender/makesdna/DNA_curves_types.h +++ b/source/blender/makesdna/DNA_curves_types.h @@ -49,6 +49,12 @@ typedef enum KnotsMode { NURBS_KNOT_MODE_ENDPOINT_BEZIER = 3, } 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, +} NormalMode; + /** * 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 -- cgit v1.2.3