diff options
author | Bastien Montagne <bastien@blender.org> | 2022-08-01 17:47:17 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-08-01 17:52:45 +0300 |
commit | 4d8018948ddb2952a7daa57adb6c460717a0ff6e (patch) | |
tree | 92696d589154ef161c3f308c677bfea21ccfdb69 /source/blender | |
parent | f08ea76db591a1ca60715f19f3465da57b26f64e (diff) |
Fix T99820: missing 'no more mising' tagging on reloaded libraries.
Can be also backported to 2.93LTS.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/blendfile_link_append.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/blendfile_link_append.c b/source/blender/blenkernel/intern/blendfile_link_append.c index ebf48acde0f..d9ca1e74391 100644 --- a/source/blender/blenkernel/intern/blendfile_link_append.c +++ b/source/blender/blenkernel/intern/blendfile_link_append.c @@ -1232,8 +1232,9 @@ void BKE_blendfile_link(BlendfileLinkAppendContext *lapp_context, ReportList *re mainl = BLO_library_link_begin(&blo_handle, libname, lapp_context->params); lib = mainl->curlib; - BLI_assert(lib); - UNUSED_VARS_NDEBUG(lib); + BLI_assert(lib != NULL); + /* In case lib was already existing but not found originally, see T99820. */ + lib->id.tag &= ~LIB_TAG_MISSING; if (mainl->versionfile < 250) { BKE_reportf(reports, |