diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-11-17 12:58:40 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-11-17 12:58:40 +0300 |
commit | 02efc0111c1f7c913b750ca7757ba482fe610af2 (patch) | |
tree | a460d4e3185ff0affddc584d591c08cb7299d46d /source | |
parent | 2e1498ff16198742ba543004fd9c2c49083a6095 (diff) |
Fix T82588: Box Select selects keyframes hidden by "Only Show Selected"
Select only editable keys on selected curves when "Only Show Selected
Curves" is enabled in the Graph Editor's View menu.
This prevents selecting invisible keys with box, circle, and lasso
select in the Graph Editor.
Reviewed By: looch
Differential Revision: https://developer.blender.org/D9580
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_graph/graph_select.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_graph/graph_select.c b/source/blender/editors/space_graph/graph_select.c index 57aaa1fefce..ba684972dd7 100644 --- a/source/blender/editors/space_graph/graph_select.c +++ b/source/blender/editors/space_graph/graph_select.c @@ -529,6 +529,9 @@ static void box_select_graphkeys(bAnimContext *ac, /* filter data */ filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_CURVE_VISIBLE | ANIMFILTER_NODUPLIS); + if (sipo->flag & SIPO_SELCUVERTSONLY) { + filter |= ANIMFILTER_FOREDIT | ANIMFILTER_SELEDIT; + } ANIM_animdata_filter(ac, &anim_data, filter, ac->data, ac->datatype); /* get beztriple editing/validation funcs */ |