diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-08-22 15:32:17 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-08-22 15:34:09 +0300 |
commit | 443586f34d3a0730c67b5d8787e519bec2af3656 (patch) | |
tree | f7390198e06dbd1fdfb0e6cebbb41f498d887aea | |
parent | e3442c8864cdbdfeb7db6b21952b1be56b1a1e78 (diff) |
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...).
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |