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-15 23:25:45 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-11-16 02:01:01 +0300
commit98765e370093e088022145e841421f7a7e1da368 (patch)
tree721ec20a7c0543dbdcb29f3494806ad9e50b1a21 /source/blender/blenkernel/intern/layer.c
parentbf7af31e9f7c0177c1d390ab77804f8d556e0e56 (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.c1
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;