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.
This commit is contained in:
Bastien Montagne 2020-11-26 16:40:42 +01:00
parent 4705fafa7e
commit 87030d8be5
Notes: blender-bot 2023-02-13 20:26:05 +01:00
Referenced by issue #83046, Material change not updating in the link of an override
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}