From dc7f3123266ba98a905b0b4936fffbc13bddff84 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Thu, 29 Nov 2018 18:56:10 -0200 Subject: Outliner: Gray out collections only when they are invisible Re-factor of 4521d3e7074d. --- source/blender/editors/space_outliner/outliner_tree.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/blender/editors/space_outliner') diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c index f3386f1be09..77910496718 100644 --- a/source/blender/editors/space_outliner/outliner_tree.c +++ b/source/blender/editors/space_outliner/outliner_tree.c @@ -1313,8 +1313,7 @@ static void outliner_add_layer_collections_recursive( 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))) + ((lc->runtime_flag & LAYER_COLLECTION_VISIBLE) == 0)) { ten->flag |= TE_DISABLED; } -- cgit v1.2.3