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:
authorAlexander Gavrilov <angavrilov@gmail.com>2020-11-28 14:50:03 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2020-11-28 15:54:18 +0300
commitc99d76773509516f1543190d422fb3be4c3021a4 (patch)
tree2fcf969757c00445e5ead14323802e127b7b6ec5 /source/blender/makesdna/DNA_curve_types.h
parentb3f20eed6e85249d15724543743cb049e7991622 (diff)
Fix some naming and comments in F-Curve smoothing code.
Diffstat (limited to 'source/blender/makesdna/DNA_curve_types.h')
-rw-r--r--source/blender/makesdna/DNA_curve_types.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/makesdna/DNA_curve_types.h b/source/blender/makesdna/DNA_curve_types.h
index 372cfb225fa..3bf58203bef 100644
--- a/source/blender/makesdna/DNA_curve_types.h
+++ b/source/blender/makesdna/DNA_curve_types.h
@@ -133,8 +133,8 @@ typedef struct BezTriple {
/** BEZT_IPO_ELASTIC. */
float amplitude, period;
- /** F5: used for auto handle to distinguish between normal handle and exception (extrema). */
- char f5;
+ /** Used during auto handle calculation to mark special cases (local extremes). */
+ char auto_handle_type;
char _pad[3];
} BezTriple;
@@ -465,10 +465,14 @@ typedef enum eBezTriple_Handle {
HD_ALIGN_DOUBLESIDE = 5, /* align handles, displayed both of them. used for masks */
} eBezTriple_Handle;
-/* f5 (beztriple) */
+/* auto_handle_type (beztriple) */
typedef enum eBezTriple_Auto_Type {
+ /* Normal automatic handle that can be refined further. */
HD_AUTOTYPE_NORMAL = 0,
- HD_AUTOTYPE_SPECIAL = 1,
+ /* Handle locked horizontal due to being an Auto Clamped local
+ * extreme or a curve endpoint with Constant extrapolation.
+ * Further smoothing is disabled. */
+ HD_AUTOTYPE_LOCKED_FINAL = 1,
} eBezTriple_Auto_Type;
/* interpolation modes (used only for BezTriple->ipo) */