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
path: root/source
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-06-08 12:25:00 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-06-08 12:57:16 +0300
commit9600c7cb059348083ecb7a26827c8a648529c848 (patch)
treef752c8ab2b93fad26910ddb9343051b4e903917c /source
parent691282e5712e7dc7a8bec2091a84ab80e4bd3095 (diff)
Depsgraph: Cleanup, make conditions more clear and less indented
Diffstat (limited to 'source')
-rw-r--r--source/blender/depsgraph/intern/builder/deg_builder_nodes_view_layer.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_nodes_view_layer.cc b/source/blender/depsgraph/intern/builder/deg_builder_nodes_view_layer.cc
index 3fc97ee3fcf..7f44356a5cf 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_nodes_view_layer.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_nodes_view_layer.cc
@@ -71,13 +71,13 @@ void DepsgraphNodeBuilder::build_layer_collections(ListBase *lb)
COLLECTION_RESTRICT_VIEW : COLLECTION_RESTRICT_RENDER;
for (LayerCollection *lc = (LayerCollection *)lb->first; lc; lc = lc->next) {
- if (!(lc->collection->flag & restrict_flag)) {
- if (!(lc->flag & LAYER_COLLECTION_EXCLUDE)) {
- build_collection(lc->collection);
- }
-
- build_layer_collections(&lc->layer_collections);
+ if (lc->collection->flag & restrict_flag) {
+ continue;
+ }
+ if ((lc->flag & LAYER_COLLECTION_EXCLUDE) == 0) {
+ build_collection(lc->collection);
}
+ build_layer_collections(&lc->layer_collections);
}
}