diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-11-28 05:49:36 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2019-02-05 23:42:02 +0300 |
commit | 3d984aa15038f7a7bdf4ffacb93da83713353613 (patch) | |
tree | 12f209375e734dd31476221fb9ce04fa32c97326 /source/blender/makesdna/DNA_layer_types.h | |
parent | d1ef6be4a770c8b2caacc70cb93d3cf9ab52e0d9 (diff) |
Per view-layer collection visibility
[re-committing]
We still control this in the viewport collections visibility menu. But
now we are actually changing the visibility of the collections, not of
the objects.
If a collection is indirectly invisible (because one of its parents are
invisible) we gray it out.
Also if you click directly in the collection names, it "isolates" the
collection by hiding all collections, and showing the direct parents and
all the children of the selected collection.
Development Note:
Right now I'm excluding the hidden collections from the depsgraph.
Thus the need for tagging relations to update.
If this proves to be too slow, we can change.
Diffstat (limited to 'source/blender/makesdna/DNA_layer_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_layer_types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_layer_types.h b/source/blender/makesdna/DNA_layer_types.h index 36d4ac28db5..8a91f018f06 100644 --- a/source/blender/makesdna/DNA_layer_types.h +++ b/source/blender/makesdna/DNA_layer_types.h @@ -120,6 +120,7 @@ enum { LAYER_COLLECTION_EXCLUDE = (1 << 4), LAYER_COLLECTION_HOLDOUT = (1 << 5), LAYER_COLLECTION_INDIRECT_ONLY = (1 << 6), + LAYER_COLLECTION_RESTRICT_VIEW = (1 << 7), }; /* Layer Collection->runtime_flag */ @@ -128,6 +129,7 @@ enum { LAYER_COLLECTION_HAS_VISIBLE_OBJECTS = (1 << 1), LAYER_COLLECTION_HAS_HIDDEN_OBJECTS = (1 << 2), LAYER_COLLECTION_HAS_ENABLED_OBJECTS = (1 << 3), + LAYER_COLLECTION_VISIBLE = (1 << 4), }; /* ViewLayer->flag */ |