diff options
author | Bastien Montagne <bastien@blender.org> | 2020-06-30 11:52:02 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-06-30 13:19:11 +0300 |
commit | 0b3313e53230914e79dd5c8f02b90fbaf6a8874b (patch) | |
tree | c9e439e67a8de2f01edbdeb2f73c4b3d057301a7 /source/blender/blenloader/intern | |
parent | 4783520bfad43b643f9e88dd2386c89c35c52f5f (diff) |
Cleanup: LibOverride: Replace raw pointers checks by proper macros.
This is cleaner, but also crucial to avoid weird issues when behaviors
of those checks are modified...
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index 83c587cc446..86e878147e5 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -4070,7 +4070,8 @@ static bool write_file_handle(Main *mainvar, BLI_assert( (id->tag & (LIB_TAG_NO_MAIN | LIB_TAG_NO_USER_REFCOUNT | LIB_TAG_NOT_ALLOCATED)) == 0); - const bool do_override = !ELEM(override_storage, NULL, bmain) && id->override_library; + const bool do_override = !ELEM(override_storage, NULL, bmain) && + ID_IS_OVERRIDE_LIBRARY(id); if (do_override) { BKE_lib_override_library_operations_store_start(bmain, override_storage, id); |