LibOverride: auto-run resync process on file reading.

Part of T83811 & D10649.
This commit is contained in:
Bastien Montagne 2021-03-05 09:21:12 +01:00
parent a023c1a34c
commit 93f8c9b823
1 changed files with 8 additions and 0 deletions

View File

@ -51,6 +51,7 @@
#include "BKE_keyconfig.h"
#include "BKE_layer.h"
#include "BKE_lib_id.h"
#include "BKE_lib_override.h"
#include "BKE_main.h"
#include "BKE_preferences.h"
#include "BKE_report.h"
@ -401,6 +402,13 @@ static void setup_app_data(bContext *C,
* to recompute refcount for all local IDs too. */
BKE_main_id_refcount_recompute(bmain, false);
}
if (mode != LOAD_UNDO) {
BKE_lib_override_library_main_resync(
bmain,
curscene,
bfd->cur_view_layer ? bfd->cur_view_layer : BKE_view_layer_default_view(curscene));
}
}
static void setup_app_blend_file_data(bContext *C,