Merge branch 'master' into blender2.8
[blender.git] / source / blender / blenkernel / intern / bpath.c
index e338974eca6a56c605a93f7bc67011badb4a8aab..f3ff0f253e53dfbe55335c38a07385ba839d416d 100644 (file)
@@ -423,7 +423,7 @@ void BKE_bpath_traverse_id(Main *bmain, ID *id, BPathVisitor visit_cb, const int
 {
        const char *absbase = (flag & BKE_BPATH_TRAVERSE_ABS) ? ID_BLEND_PATH(bmain, id) : NULL;
 
-       if ((flag & BKE_BPATH_TRAVERSE_SKIP_LIBRARY) && id->lib) {
+       if ((flag & BKE_BPATH_TRAVERSE_SKIP_LIBRARY) && ID_IS_LINKED_DATABLOCK(id)) {
                return;
        }