Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-04-08 02:10:05 +0300
committerHans Goudey <h.goudey@me.com>2022-04-08 02:10:29 +0300
commit87a3bf33564b035e4c2400098ea4932d5dfdba5d (patch)
tree3059c7af8196bdc366ae71d399e6b62bae8c6d23 /source/blender/makesdna
parent3214028ae822d6b9b1622589d27dd9b9746f2aa8 (diff)
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.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_curves_types.h6
1 files changed, 6 insertions, 0 deletions
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