Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2020-11-26 18:40:42 +0300
committerBastien Montagne <bastien@blender.org>2020-11-26 18:43:31 +0300
commit87030d8be5e9dd6a9c6d95882949d1a18575b90c (patch)
tree6f07da672684e947c7de2287ff194efdfdf8881f /source/blender/blenkernel/intern/lib_override.c
parent4705fafa7e3e197581acf6d391b03f0004fd7667 (diff)
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.
Diffstat (limited to 'source/blender/blenkernel/intern/lib_override.c')
-rw-r--r--source/blender/blenkernel/intern/lib_override.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}