Commit: 518c0ba469b24b095043cf2b86e4db09153545b1
Author: Bastien Montagne
Date: Fri Mar 5 09:21:12 2021 +0100
Branches: override-refactor-tmp-2
https://developer.blender.org/rB518c0ba469b24b095043cf2b86e4db09153545b1
LibOverride: auto-run resync process on file reading.
===================================================================
M source/blender/blenkernel/intern/blendfile.c
===================================================================
diff --git a/source/blender/blenkernel/intern/blendfile.c
b/source/blender/blenkernel/intern/blendfile.c
index 101f4b7caf6..a7af0eccb49 100644
--- a/source/blender/blenkernel/intern/blendfile.c
+++ b/source/blender/blenkernel/intern/blendfile.c
@@ -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,
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs