Fix T93194: greasepencil channel lists ignoring collection visibility

Same fix as rB0a3b4d4c64f1, but this time for greasepencil.

To repeat: dopesheet in greasepencil mode was ignoring the temporariy
visibility flag of collections. As a result, even though the dopesheet
was supposed to show animation data of visible greasepencils only was
still showing such data of greasepencils that were hidden by hiding
their collection.
This commit is contained in:
Philipp Oeser 2021-11-19 11:16:04 +01:00
parent 419b4e0b00
commit f043b0334b
Notes: blender-bot 2023-02-13 17:05:05 +01:00
Referenced by issue #88449: Blender LTS: Maintenance Task 2.93
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
Referenced by issue #93194, Channels in the Grease Pencil Dope Sheet still visible while collection is hidden
1 changed files with 2 additions and 1 deletions

View File

@ -1887,7 +1887,8 @@ static size_t animdata_filter_gpencil(bAnimContext *ac,
if ((filter_mode & ANIMFILTER_DATA_VISIBLE) && !(ads->filterflag & ADS_FILTER_INCL_HIDDEN)) {
/* Layer visibility - we check both object and base,
* since these may not be in sync yet. */
if ((base->flag & BASE_VISIBLE_DEPSGRAPH) == 0) {
if ((base->flag & BASE_VISIBLE_DEPSGRAPH) == 0 ||
(base->flag & BASE_VISIBLE_VIEWLAYER) == 0) {
continue;
}