From ad317a5ffdcfdfed9ef3f82ee82fd2dbd41e2bc9 Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Mon, 13 Apr 2020 19:12:48 +0200 Subject: [PATCH] Fix T75676: Inconsistent "Only selected" GP layers in Dope Sheet The selection was not checking all modes. --- source/blender/editors/animation/anim_filter.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/source/blender/editors/animation/anim_filter.c b/source/blender/editors/animation/anim_filter.c index 8bdf1ef7684..4dc0bef3a1b 100644 --- a/source/blender/editors/animation/anim_filter.c +++ b/source/blender/editors/animation/anim_filter.c @@ -1880,13 +1880,12 @@ static size_t animdata_filter_gpencil(bAnimContext *ac, } } - /* check selection and object type filters only for Object mode */ - if (ob->mode == OB_MODE_OBJECT) { - if ((ads->filterflag & ADS_FILTER_ONLYSEL) && !((base->flag & BASE_SELECTED))) { - /* only selected should be shown */ - continue; - } + /* check selection and object type filters */ + if ((ads->filterflag & ADS_FILTER_ONLYSEL) && !((base->flag & BASE_SELECTED))) { + /* only selected should be shown */ + continue; } + /* check if object belongs to the filtering group if option to filter * objects by the grouped status is on * - used to ease the process of doing multiple-character choreographies