diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2019-02-09 23:41:52 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2019-02-09 23:41:52 +0300 |
commit | 66c23ea2b4a4eb66490a8b9b6c57ed60ec934a42 (patch) | |
tree | 8bec50a3953f27fcca8dcfd199df7877f4925793 /source/blender/blenkernel/intern/layer.c | |
parent | 69f50e6ea98c5f9ac082e9795e0cd3c1cba5378f (diff) |
Cleanup: Use ID_IS_LINKED instead of id.lib
Diffstat (limited to 'source/blender/blenkernel/intern/layer.c')
-rw-r--r-- | source/blender/blenkernel/intern/layer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/layer.c b/source/blender/blenkernel/intern/layer.c index d660e5e6424..b7073045d6c 100644 --- a/source/blender/blenkernel/intern/layer.c +++ b/source/blender/blenkernel/intern/layer.c @@ -1005,7 +1005,7 @@ bool BKE_layer_collection_isolate(Scene *scene, ViewLayer *view_layer, LayerColl bool depsgraph_need_update = false; LayerCollection *lc_master = view_layer->layer_collections.first; - if (lc->collection->id.lib == NULL) { + if (!ID_IS_LINKED(lc->collection)) { if (lc->collection->flag & COLLECTION_RESTRICT_VIEW) { lc->collection->flag &= ~COLLECTION_RESTRICT_VIEW; depsgraph_need_update = true; @@ -1029,7 +1029,7 @@ bool BKE_layer_collection_isolate(Scene *scene, ViewLayer *view_layer, LayerColl } while (lc_parent != lc) { - if (lc_parent->collection->id.lib == NULL) { + if (!ID_IS_LINKED(lc_parent->collection)) { if (lc_parent->collection->flag & COLLECTION_RESTRICT_VIEW) { lc_parent->collection->flag &= ~COLLECTION_RESTRICT_VIEW; depsgraph_need_update = true; @@ -1089,7 +1089,7 @@ bool BKE_layer_collection_set_visible(ViewLayer *view_layer, LayerCollection *lc bool depsgraph_changed = false; if (visible && - (lc->collection->id.lib == NULL) && + (!ID_IS_LINKED(lc->collection)) && ((lc->collection->flag & COLLECTION_RESTRICT_VIEW) != 0)) { lc->collection->flag &= ~COLLECTION_RESTRICT_VIEW; |