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>2011-11-12 09:00:24 +0400
committerJoshua Leung <aligorith@gmail.com>2011-11-12 09:00:24 +0400
commite2c06d5fc91f4f1125cf79280cb585400f6e056c (patch)
tree4ccac35f879eede06ec38a58d5b0bb5d2b8901a8 /source/blender/editors/space_graph
parent8da281210063e3216d19848ecc82545fb1aeb58f (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_graph')
-rw-r--r--source/blender/editors/space_graph/graph_select.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/space_graph/graph_select.c b/source/blender/editors/space_graph/graph_select.c
index e74c7d50adc..6506933df54 100644
--- a/source/blender/editors/space_graph/graph_select.c
+++ b/source/blender/editors/space_graph/graph_select.c
@@ -732,8 +732,9 @@ static void graphkeys_select_leftright (bAnimContext *ac, short leftright, short
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_graph_keys(ac, 0, SELECT_SUBTRACT);
}