[Bf-blender-cvs] [bd9d68e4dc6] master: Fix (studio-reported) issue with overrides on library relocating.

Bastien Montagne noreply at git.blender.org
Thu Oct 20 11:49:37 CEST 2022


Commit: bd9d68e4dc6fcc840afa514cba7975a6bd86386d
Author: Bastien Montagne
Date:   Thu Oct 20 11:22:51 2022 +0200
Branches: master
https://developer.blender.org/rBbd9d68e4dc6fcc840afa514cba7975a6bd86386d

Fix (studio-reported) issue with overrides on library relocating.

Liboverrides that were using a missing linked reference ID would not get
their 'MISSING' tag properly cleared afer relocating, in case their
linked reference is no more missing.

Reported by Andy (@eyecandy) from Blender studio.

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

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 394469e19a4..a937c74578a 100644
--- a/source/blender/blenkernel/intern/blendfile_link_append.c
+++ b/source/blender/blenkernel/intern/blendfile_link_append.c
@@ -1614,6 +1614,9 @@ void BKE_blendfile_library_relocate(BlendfileLinkAppendContext *lapp_context,
         (id->tag & LIB_TAG_PRE_EXISTING) == 0) {
       continue;
     }
+    if ((id->override_library->reference->tag & LIB_TAG_MISSING) == 0) {
+      id->tag &= ~LIB_TAG_MISSING;
+    }
     if ((id->override_library->reference->tag & LIB_TAG_PRE_EXISTING) == 0) {
       BKE_lib_override_library_update(bmain, id);
     }



More information about the Bf-blender-cvs mailing list