[Bf-blender-cvs] [aac2db3] master: Fix T42540: save_pre and save_post handlers not called when saving startup.blend.
Brecht Van Lommel
noreply at git.blender.org
Sun Nov 9 15:14:18 CET 2014
Commit: aac2db33df448f87431629b794c47c7ad1da044e
Author: Brecht Van Lommel
Date: Sun Nov 9 15:11:40 2014 +0100
Branches: master
https://developer.blender.org/rBaac2db33df448f87431629b794c47c7ad1da044e
Fix T42540: save_pre and save_post handlers not called when saving startup.blend.
===================================================================
M source/blender/windowmanager/intern/wm_files.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index d6568ea..8a6b504 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -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;
}
More information about the Bf-blender-cvs
mailing list