diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-02-01 14:45:24 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-02-01 14:45:24 +0300 |
commit | c8e8057ada8318688f9b520d3610456116a2eae2 (patch) | |
tree | ee506f7b3256f529d637abaffc37917664597d5d /source/blender/editors/animation/keyframes_edit.c | |
parent | c5ef38a415805d4d4609eb44a85cc0417b2fa7d5 (diff) |
Bugfix #19970: auto-clamped / auto working strangly in f-curve editor
Fixed the operators for DopeSheet/Graph Editors responsible for setting the "auto-clamped". This option is actually per F-Curve instead of per handle, and the code here should function like it did in 2.4x
However, despite this, it still appears to work oddly IMO. Any comments Bassam or animators familiar with the intentions of this?
Diffstat (limited to 'source/blender/editors/animation/keyframes_edit.c')
-rw-r--r-- | source/blender/editors/animation/keyframes_edit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/animation/keyframes_edit.c b/source/blender/editors/animation/keyframes_edit.c index fe78a058d24..81845598162 100644 --- a/source/blender/editors/animation/keyframes_edit.c +++ b/source/blender/editors/animation/keyframes_edit.c @@ -753,8 +753,8 @@ BeztEditFunc ANIM_editkeyframes_mirror(short type) static short set_bezier_auto(BeztEditData *bed, BezTriple *bezt) { if((bezt->f1 & SELECT) || (bezt->f3 & SELECT)) { - if (bezt->f1 & SELECT) bezt->h1= 1; /* the secret code for auto */ - if (bezt->f3 & SELECT) bezt->h2= 1; + if (bezt->f1 & SELECT) bezt->h1= HD_AUTO; /* the secret code for auto */ + if (bezt->f3 & SELECT) bezt->h2= HD_AUTO; /* if the handles are not of the same type, set them * to type free @@ -809,7 +809,7 @@ static short set_bezier_free(BeztEditData *bed, BezTriple *bezt) return 0; } -/* Set all Bezier Handles to a single type */ +/* Set all selected Bezier Handles to a single type */ // calchandles_fcurve BeztEditFunc ANIM_editkeyframes_handles(short code) { |