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:
authorSybren A. Stüvel <sybren@blender.org>2020-02-27 16:22:01 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-02-27 16:22:01 +0300
commit0a3b4d4c64f15e0a39121d7bacb8e6096aa2130d (patch)
tree198e115ac477cad316ca0f02ff4281c63b112df8 /source/blender/editors/animation
parentaa4579c35f93ccef7090474495953727f979c698 (diff)
Fix channel lists ignoring collection visibility
The dope sheet, NLA editor, and other similar animation editors were ignoring the temporariy visibility flag of collections. As a result, an editor that's supposed to show animation data of visible objects only was still showing such data of objects that were hidden by hiding their collection. This was observed while fixing T71743.
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r--source/blender/editors/animation/anim_filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/animation/anim_filter.c b/source/blender/editors/animation/anim_filter.c
index a9ddc53e5bb..5a0e60f8d58 100644
--- a/source/blender/editors/animation/anim_filter.c
+++ b/source/blender/editors/animation/anim_filter.c
@@ -2996,7 +2996,7 @@ static bool animdata_filter_base_is_ok(bDopeSheet *ads, Base *base, int filter_m
*/
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) {
return false;
}