Commit: 443586f34d3a0730c67b5d8787e519bec2af3656
Author: Bastien Montagne
Date: Thu Aug 22 14:32:17 2019 +0200
Branches: master
https://developer.blender.org/rB443586f34d3a0730c67b5d8787e519bec2af3656
LibOverride: Enforce full override operations check on file save.
We try to avoid diffing too much things during edition, but when saving
a file we need to check all possible overridable IDs to ensure we have
all needed override operations...
Was pretty sure that was already in code, but apparently not (or it got
lost at some point...).
===================================================================
M source/blender/windowmanager/intern/wm_files.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_files.c
b/source/blender/windowmanager/intern/wm_files.c
index d9f43b51f4d..e3370069bca 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -77,6 +77,7 @@
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_idprop.h"
+#include "BKE_library_override.h"
#include "BKE_main.h"
#include "BKE_packedFile.h"
#include "BKE_report.h"
@@ -1355,6 +1356,9 @@ static bool wm_file_write(bContext *C, const char
*filepath, int fileflags, Repo
* that way you can generate custom file thumbnail. */
BLI_callback_exec(bmain, NULL, BLI_CB_EVT_SAVE_PRE);
+ /* Enforce full override check/generation on file save. */
+ BKE_main_override_library_operations_create(bmain, true);
+
/* blend file thumbnail */
/* Save before exit_editmode, otherwise derivedmeshes for shared data
corrupt T27765. */
/* Main now can store a '.blend' thumbnail, useful for background mode
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs