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/makesrna/intern/rna_access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/makesrna/intern/rna_access.c') diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index c838032f1bb..8fa2d0ed849 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -6151,7 +6151,7 @@ char *RNA_path_full_ID_py(Main *bmain, ID *id) } char lib_filepath_esc[(sizeof(id->lib->filepath) * 2) + 4]; - if (id->lib != NULL) { + if (ID_IS_LINKED(id)) { int ofs = 0; memcpy(lib_filepath_esc, ", \"", 3); ofs += 3; -- cgit v1.2.3