diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-06-08 12:46:51 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-06-08 12:57:16 +0300 |
commit | d38c7db5e1cc394a602dfeb35cb2e145d0b0220b (patch) | |
tree | 8ef4083b18599873aa4dfbf569afc94a09edb281 /source/blender/depsgraph | |
parent | 4017b4833152655dbb161896ab1bf47469a61d69 (diff) |
Depsgraph: Cleanup, make conditions more clear and less indented
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_relations_view_layer.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations_view_layer.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations_view_layer.cc index ce0571362c6..b940fc3035e 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations_view_layer.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations_view_layer.cc @@ -75,13 +75,13 @@ void DepsgraphRelationBuilder::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(DEG_COLLECTION_OWNER_SCENE, NULL, lc->collection); - } - - build_layer_collections(&lc->layer_collections); + if ((lc->collection->flag & restrict_flag)) { + continue; + } + if ((lc->flag & LAYER_COLLECTION_EXCLUDE) == 0) { + build_collection(DEG_COLLECTION_OWNER_SCENE, NULL, lc->collection); } + build_layer_collections(&lc->layer_collections); } } |