[Bf-blender-cvs] [ad317a5ffdc] master: Fix T75676: Inconsistent "Only selected" GP layers in Dope Sheet
Antonio Vazquez
noreply at git.blender.org
Mon Apr 13 19:13:12 CEST 2020
Commit: ad317a5ffdcfdfed9ef3f82ee82fd2dbd41e2bc9
Author: Antonio Vazquez
Date: Mon Apr 13 19:12:48 2020 +0200
Branches: master
https://developer.blender.org/rBad317a5ffdcfdfed9ef3f82ee82fd2dbd41e2bc9
Fix T75676: Inconsistent "Only selected" GP layers in Dope Sheet
The selection was not checking all modes.
===================================================================
M source/blender/editors/animation/anim_filter.c
===================================================================
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
More information about the Bf-blender-cvs
mailing list