[Bf-blender-cvs] [4d8018948dd] blender-v3.3-release: Fix T99820: missing 'no more mising' tagging on reloaded libraries.
Bastien Montagne
noreply at git.blender.org
Mon Aug 1 16:52:49 CEST 2022
Commit: 4d8018948ddb2952a7daa57adb6c460717a0ff6e
Author: Bastien Montagne
Date: Mon Aug 1 16:47:17 2022 +0200
Branches: blender-v3.3-release
https://developer.blender.org/rB4d8018948ddb2952a7daa57adb6c460717a0ff6e
Fix T99820: missing 'no more mising' tagging on reloaded libraries.
Can be also backported to 2.93LTS.
===================================================================
M source/blender/blenkernel/intern/blendfile_link_append.c
===================================================================
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,
More information about the Bf-blender-cvs
mailing list