[Bf-blender-cvs] [87030d8be5e] master: Fix T83046: Material change not updating in the link of an override.

Bastien Montagne noreply at git.blender.org
Thu Nov 26 16:43:36 CET 2020


Commit: 87030d8be5e9dd6a9c6d95882949d1a18575b90c
Author: Bastien Montagne
Date:   Thu Nov 26 16:40:42 2020 +0100
Branches: master
https://developer.blender.org/rB87030d8be5e9dd6a9c6d95882949d1a18575b90c

Fix T83046: Material change not updating in the link of an override.

Code was actually not applying any override operation over linked data.

Reasonn behind that was that if library file is saved with latest
override applied then this is not needed, since data saved for the
override in the lib file is already up to date.

But this is actually fully breaking in case someone update the lib file
of the lib file, without re-saving the libfile itself.

So now we alwaya apply overrides also on linked data.

Note that this will not fix the case where a resync is needed.

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

M	source/blender/blenkernel/intern/lib_override.c

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

diff --git a/source/blender/blenkernel/intern/lib_override.c b/source/blender/blenkernel/intern/lib_override.c
index e6f0e5e1199..bcefcd5f001 100644
--- a/source/blender/blenkernel/intern/lib_override.c
+++ b/source/blender/blenkernel/intern/lib_override.c
@@ -1817,7 +1817,7 @@ void BKE_lib_override_library_main_update(Main *bmain)
   G_MAIN = bmain;
 
   FOREACH_MAIN_ID_BEGIN (bmain, id) {
-    if (id->override_library != NULL && id->lib == NULL) {
+    if (id->override_library != NULL) {
       BKE_lib_override_library_update(bmain, id);
     }
   }



More information about the Bf-blender-cvs mailing list