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

Backport of rB4d8018948ddb for 2.93 LTS.
This commit is contained in:
Bastien Montagne 2022-08-02 15:11:06 +02:00
parent d03a5fab7a
commit 977a5bbee1
Notes: blender-bot 2023-04-04 07:45:26 +02: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 2 additions and 1 deletions

View File

@ -261,7 +261,8 @@ static void wm_link_do(WMLinkAppendData *lapp_data,
mainl = BLO_library_link_begin(&bh, libname, &liblink_params);
lib = mainl->curlib;
BLI_assert(lib);
UNUSED_VARS_NDEBUG(lib);
/* 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,