Outliner: Gray out collections only when they are invisible
authorDalai Felinto <dfelinto@gmail.com>
Thu, 29 Nov 2018 20:56:10 +0000 (18:56 -0200)
committerDalai Felinto <dfelinto@gmail.com>
Tue, 5 Feb 2019 20:42:02 +0000 (18:42 -0200)
Re-factor of 4521d3e7074d.

source/blender/editors/space_outliner/outliner_tree.c

index f3386f1..7791049 100644 (file)
@@ -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;
                }