Depsgraph: Cleanup, make conditions more clear and less indented

This commit is contained in:
Sergey Sharybin 2018-06-08 11:25:00 +02:00
parent 691282e571
commit 9600c7cb05
1 changed files with 6 additions and 6 deletions

View File

@ -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);
}
}