Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2022-02-10 19:29:31 +0300
committerBastien Montagne <bastien@blender.org>2022-02-10 19:30:07 +0300
commit9a2b206639364fcc696b44879a715eaacc60347a (patch)
tree7950e5d1d824be0c173ed83f6c7037f723884a1e /source
parent64dd6877aa883122deb4f9a2240e6e03ab74a6ba (diff)
Minor cleanup: Use `ID_IS_LINKED`.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/lib_override.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/lib_override.c b/source/blender/blenkernel/intern/lib_override.c
index 049b5e75c89..59cb6b2036e 100644
--- a/source/blender/blenkernel/intern/lib_override.c
+++ b/source/blender/blenkernel/intern/lib_override.c
@@ -1955,7 +1955,8 @@ static int lib_override_sort_libraries_func(LibraryIDLinkCallbackData *cb_data)
ID *id_owner = cb_data->id_owner;
ID *id = *cb_data->id_pointer;
if (id != NULL && ID_IS_LINKED(id) && id->lib != id_owner->lib) {
- const int owner_library_indirect_level = id_owner->lib != NULL ? id_owner->lib->temp_index : 0;
+ const int owner_library_indirect_level = ID_IS_LINKED(id_owner) ? id_owner->lib->temp_index :
+ 0;
if (owner_library_indirect_level > 10000) {
CLOG_ERROR(
&LOG,