[Bf-blender-cvs] [977a5bbee12] blender-v2.93-release: Fix T99820: missing 'no more mising' tagging on reloaded libraries.

Bastien Montagne noreply at git.blender.org
Tue Aug 2 15:11:58 CEST 2022


Commit: 977a5bbee1261bcaa0a6b3fba95c483da01f1398
Author: Bastien Montagne
Date:   Tue Aug 2 15:11:06 2022 +0200
Branches: blender-v2.93-release
https://developer.blender.org/rB977a5bbee1261bcaa0a6b3fba95c483da01f1398

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

Backport of rB4d8018948ddb for 2.93 LTS.

===================================================================

M	source/blender/windowmanager/intern/wm_files_link.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_files_link.c b/source/blender/windowmanager/intern/wm_files_link.c
index 840debad01b..219f008f0d0 100644
--- a/source/blender/windowmanager/intern/wm_files_link.c
+++ b/source/blender/windowmanager/intern/wm_files_link.c
@@ -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,



More information about the Bf-blender-cvs mailing list