diff options
author | Bastien Montagne <bastien@blender.org> | 2021-11-25 16:50:34 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-11-25 16:56:56 +0300 |
commit | e253fb2143e2a8f1de331d17343d44671ab6e440 (patch) | |
tree | e5eff31bb1dfc588a48888503222282e9ad6b59d | |
parent | 3bf10e5d0ac297a70a9bc294fff0448e6b11fc20 (diff) |
Fix T93353: Reload Library used as source for liboverride loses Constraints.
Liboverride properties and operations list need to be fully up-to-date
before libraries are reloaded, otherwise re-applying those liboverrides
after linked data is reloaded may miss some changes.
-rw-r--r-- | source/blender/windowmanager/intern/wm_files_link.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_files_link.c b/source/blender/windowmanager/intern/wm_files_link.c index b45cf765a75..c8ccaf8a788 100644 --- a/source/blender/windowmanager/intern/wm_files_link.c +++ b/source/blender/windowmanager/intern/wm_files_link.c @@ -1541,6 +1541,11 @@ static void lib_relocate_do(bContext *C, Scene *scene = CTX_data_scene(C); ViewLayer *view_layer = CTX_data_view_layer(C); + /* All override rules need to be up to date, since there will be no do_version here, otherwise + * older, now-invalid rules might be applied and likely fail, or some changes might be missing, + * etc. See T93353. */ + BKE_lib_override_library_main_operations_create(bmain, true); + /* Remove all IDs to be reloaded from Main. */ lba_idx = set_listbasepointers(bmain, lbarray); while (lba_idx--) { |