diff options
author | Joshua Leung <aligorith@gmail.com> | 2011-11-12 09:00:24 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2011-11-12 09:00:24 +0400 |
commit | e2c06d5fc91f4f1125cf79280cb585400f6e056c (patch) | |
tree | 4ccac35f879eede06ec38a58d5b0bb5d2b8901a8 /source/blender/editors/space_action | |
parent | 8da281210063e3216d19848ecc82545fb1aeb58f (diff) |
Bugfix [#29212] Select before/after current frame deselects all channels in
graph editor
No need to deselect all channels when doing the select left/right operator,
since we don't replace the selection afterwards with anything useful. This would
be a problem when the "Only Show Selected" option is enabled (as it is by
default), as this results in the curves being worked on disappearing from view.
F-Curves though will still get deselected as a result of the code to deselect
keyframes. Will need to review whether this is still a good idea (original
intention was so that only curves with keyframes selected would remain
selected).
Diffstat (limited to 'source/blender/editors/space_action')
-rw-r--r-- | source/blender/editors/space_action/action_select.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/space_action/action_select.c b/source/blender/editors/space_action/action_select.c index dc81fb1e8bc..f717b827a7e 100644 --- a/source/blender/editors/space_action/action_select.c +++ b/source/blender/editors/space_action/action_select.c @@ -728,8 +728,9 @@ static void actkeys_select_leftright (bAnimContext *ac, short leftright, short s if (select_mode==SELECT_REPLACE) { select_mode= SELECT_ADD; - /* deselect all other channels and keyframes */ - ANIM_deselect_anim_channels(ac, ac->data, ac->datatype, 0, ACHANNEL_SETFLAG_CLEAR); + /* - deselect all other keyframes, so that just the newly selected remain + * - channels aren't deselected, since we don't re-select any as a consequence + */ deselect_action_keys(ac, 0, SELECT_SUBTRACT); } @@ -918,8 +919,6 @@ static void actkeys_mselect_column(bAnimContext *ac, short select_mode, float se KeyframeEditFunc select_cb, ok_cb; KeyframeEditData ked= {{NULL}}; - /* initialise keyframe editing data */ - /* set up BezTriple edit callbacks */ select_cb= ANIM_editkeyframes_select(select_mode); ok_cb= ANIM_editkeyframes_ok(BEZT_OK_FRAME); |