Fix T99820: missing 'no more mising' tagging on reloaded libraries.

Can be also backported to 2.93LTS.
This commit is contained in:
Bastien Montagne 2022-08-01 16:47:17 +02:00
parent f08ea76db5
commit 4d8018948d
Notes: blender-bot 2023-02-14 06:00:47 +01:00
Referenced by issue #88449: Blender LTS: Maintenance Task 2.93
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
Referenced by issue #99820, Missing library / broken link warning does not go away when the broken link resolved and reloaded
1 changed files with 3 additions and 2 deletions

View File

@ -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,