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:
authorJoshua Leung <aligorith@gmail.com>2010-02-03 00:16:28 +0300
committerJoshua Leung <aligorith@gmail.com>2010-02-03 00:16:28 +0300
commit1ee7b2fae4c61ac45ae6a7e53e51bea78a7ae306 (patch)
treed503c771f717b9a8e3d7f7c4b509267047d45d4f /source/blender/editors/animation/keyframes_edit.c
parent66aa2e012736f9f5216ae95a4234724e8842dcb1 (diff)
Bugfix #19970: auto-clamped / auto working strangly in f-curve editor
Thanks to a great doc from Bassam (slikdigit) on the different types of handles (which should probably become/be part of future 2.5 docs), I've revised the code again so that this works well again. The doc: http://docs.google.com/View?id=dvgkxj6_1d8cpfw79
Diffstat (limited to 'source/blender/editors/animation/keyframes_edit.c')
-rw-r--r--source/blender/editors/animation/keyframes_edit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/animation/keyframes_edit.c b/source/blender/editors/animation/keyframes_edit.c
index 81845598162..912b51a0b4d 100644
--- a/source/blender/editors/animation/keyframes_edit.c
+++ b/source/blender/editors/animation/keyframes_edit.c
@@ -815,7 +815,9 @@ BeztEditFunc ANIM_editkeyframes_handles(short code)
{
switch (code) {
case HD_AUTO: /* auto */
+ case HD_AUTO_ANIM: /* auto clamped */
return set_bezier_auto;
+
case HD_VECT: /* vector */
return set_bezier_vector;
case HD_FREE: /* free */
@@ -823,7 +825,7 @@ BeztEditFunc ANIM_editkeyframes_handles(short code)
case HD_ALIGN: /* align */
return set_bezier_align;
- default: /* free or align? */
+ default: /* check for toggle free or align? */
return bezier_isfree;
}
}