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:
authorCampbell Barton <ideasman42@gmail.com>2016-08-01 02:01:43 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-08-01 02:06:40 +0300
commit8c74ebb64f883701aecd291e5543b0f27ded8764 (patch)
treec9624fa397acfee52e099c1f6258ea0873bf7ffd /source/blender/makesrna/intern/rna_color.c
parent36a790653c01809546ae2db9f9a56123f2dfdec7 (diff)
Support Auto-Clamped Handle for Curve-Mapping
This patch supports auto-clamped handles for curves, useful since without this it can be difficult to have 'flat' sections of a curve.
Diffstat (limited to 'source/blender/makesrna/intern/rna_color.c')
-rw-r--r--source/blender/makesrna/intern/rna_color.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_color.c b/source/blender/makesrna/intern/rna_color.c
index 78e3bbe4176..24f2d8174af 100644
--- a/source/blender/makesrna/intern/rna_color.c
+++ b/source/blender/makesrna/intern/rna_color.c
@@ -690,7 +690,8 @@ static void rna_def_curvemappoint(BlenderRNA *brna)
PropertyRNA *prop;
static EnumPropertyItem prop_handle_type_items[] = {
{0, "AUTO", 0, "Auto Handle", ""},
- {CUMA_VECTOR, "VECTOR", 0, "Vector Handle", ""},
+ {CUMA_HANDLE_AUTO_ANIM, "AUTO_CLAMPED", 0, "Auto Clamped Handle", ""},
+ {CUMA_HANDLE_VECTOR, "VECTOR", 0, "Vector Handle", ""},
{0, NULL, 0, NULL, NULL}
};