Fix T42540: save_pre and save_post handlers not called when saving startup.blend.
This commit is contained in:
parent
a1c1ec86d9
commit
aac2db33df
Notes:
blender-bot
2023-02-14 11:20:29 +01:00
Referenced by issue #42540, save_pre not called when saving startup.blend file
|
@ -1015,6 +1015,8 @@ int wm_homefile_write_exec(bContext *C, wmOperator *op)
|
|||
char filepath[FILE_MAX];
|
||||
int fileflags;
|
||||
|
||||
BLI_callback_exec(G.main, NULL, BLI_CB_EVT_SAVE_PRE);
|
||||
|
||||
/* check current window and close it if temp */
|
||||
if (win && win->screen->temp)
|
||||
wm_window_close(C, wm, win);
|
||||
|
@ -1039,6 +1041,8 @@ int wm_homefile_write_exec(bContext *C, wmOperator *op)
|
|||
|
||||
G.save_over = 0;
|
||||
|
||||
BLI_callback_exec(G.main, NULL, BLI_CB_EVT_SAVE_POST);
|
||||
|
||||
return OPERATOR_FINISHED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue