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:
authorDalai Felinto <dfelinto@gmail.com>2018-11-29 23:56:10 +0300
committerDalai Felinto <dfelinto@gmail.com>2019-02-05 23:42:02 +0300
commitdc7f3123266ba98a905b0b4936fffbc13bddff84 (patch)
treea8c782665dd80352569be746d8645d44911bc311 /source/blender/editors/space_outliner
parent7b22c3269bf396c3180af156eba86b1e627ee0b9 (diff)
Outliner: Gray out collections only when they are invisible
Re-factor of 4521d3e7074d.
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r--source/blender/editors/space_outliner/outliner_tree.c3
1 files changed, 1 insertions, 2 deletions
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;
}