diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-01-26 13:56:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-01-26 13:56:49 +0300 |
commit | 548d8a397c39f43459af404170614db6a18ebde1 (patch) | |
tree | 65f259ec6c179fb0af06fb893c4230beff674686 /source/blender/windowmanager/intern/wm_init_exit.c | |
parent | 7909f70f64e550633fd381b0875fc5ba21616187 (diff) |
Fix T85011: "Allow Execution" reloads the wrong file when recovering
Support custom revert actions, necessary for recover operations
to be able to reload the file with scripts enabled.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_init_exit.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_init_exit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index d513598cf19..608aa116239 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -517,6 +517,9 @@ void WM_exit_ex(bContext *C, const bool do_python) BKE_blendfile_userdef_write_all(NULL); } } + /* Free the callback data used on file-open + * (will be set when a recover operation has run). */ + wm_test_autorun_revert_action_set(NULL, NULL); } } |