From 4521d3e7074d2e08ca813e1f4a2297f5000f335b Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Tue, 27 Nov 2018 23:06:45 -0200 Subject: [PATCH] Outliner: Do not gray out empty collections We can still have a special icon for them, but graying out is not the way to go. --- source/blender/editors/space_outliner/outliner_tree.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c index 902235779cf..2a21b73e9bd 100644 --- a/source/blender/editors/space_outliner/outliner_tree.c +++ b/source/blender/editors/space_outliner/outliner_tree.c @@ -1314,10 +1314,7 @@ static void outliner_add_layer_collections_recursive( ten->directdata = lc; const bool exclude = (lc->flag & LAYER_COLLECTION_EXCLUDE) != 0; - if (exclude || - ((layer->runtime_flag & VIEW_LAYER_HAS_HIDE) && - !(lc->runtime_flag & LAYER_COLLECTION_HAS_VISIBLE_OBJECTS))) - { + if (exclude) { ten->flag |= TE_DISABLED; }