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.
This commit is contained in:
Dalai Felinto 2018-11-27 23:06:45 -02:00
parent fd16b35997
commit 4521d3e707
Notes: blender-bot 2023-02-14 07:30:31 +01:00
Referenced by commit dc7f312326, Outliner: Gray out collections only when they are invisible
Referenced by commit 2bd62b076f, Outliner/visibility: revert changes for now until we find better solutions.
1 changed files with 1 additions and 4 deletions

View File

@ -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;
}