diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-11-15 23:25:45 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-11-16 02:01:01 +0300 |
commit | 98765e370093e088022145e841421f7a7e1da368 (patch) | |
tree | 721ec20a7c0543dbdcb29f3494806ad9e50b1a21 /source/blender/blenkernel/intern/layer.c | |
parent | bf7af31e9f7c0177c1d390ab77804f8d556e0e56 (diff) |
RNA: LayerCollection.has_hidden_objects
With this we have a way to tell that a collection has visible objects
but not all of its objects are visible.
Diffstat (limited to 'source/blender/blenkernel/intern/layer.c')
-rw-r--r-- | source/blender/blenkernel/intern/layer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/layer.c b/source/blender/blenkernel/intern/layer.c index 0e4a38503ae..2f9c818934f 100644 --- a/source/blender/blenkernel/intern/layer.c +++ b/source/blender/blenkernel/intern/layer.c @@ -726,6 +726,7 @@ static short layer_collection_sync( if (base->flag & BASE_HIDDEN) { view_layer->runtime_flag |= VIEW_LAYER_HAS_HIDE; + lc->runtime_flag |= LAYER_COLLECTION_HAS_HIDDEN_OBJECTS; } else if (base->flag & BASE_VISIBLE) { lc->runtime_flag |= LAYER_COLLECTION_HAS_VISIBLE_OBJECTS; |