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

View File

@@ -1314,10 +1314,7 @@ static void outliner_add_layer_collections_recursive(
ten->directdata = lc; ten->directdata = lc;
const bool exclude = (lc->flag & LAYER_COLLECTION_EXCLUDE) != 0; const bool exclude = (lc->flag & LAYER_COLLECTION_EXCLUDE) != 0;
if (exclude || if (exclude) {
((layer->runtime_flag & VIEW_LAYER_HAS_HIDE) &&
!(lc->runtime_flag & LAYER_COLLECTION_HAS_VISIBLE_OBJECTS)))
{
ten->flag |= TE_DISABLED; ten->flag |= TE_DISABLED;
} }