From edb95b3fcbb907fe4b93fecf9e398f41113b3ee4 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Thu, 26 Aug 2021 15:01:14 +0200 Subject: Cleanup: Use `ID_IS_LINKED` instead of direct `id.lib` pointer check. --- source/blender/editors/space_file/filelist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_file') diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c index 1a53d25ad39..c7d23943b6c 100644 --- a/source/blender/editors/space_file/filelist.c +++ b/source/blender/editors/space_file/filelist.c @@ -3055,7 +3055,7 @@ static void filelist_readjob_main_recursive(Main *bmain, FileList *filelist) ok = 1; if (ok) { if (!(filelist->filter_data.flags & FLF_HIDE_DOT) || id->name[2] != '.') { - if (id->lib == NULL) { + if (!ID_IS_LINKED(id)) { files->entry->relpath = BLI_strdup(id->name + 2); } else { -- cgit v1.2.3