Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-02-12 23:53:42 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-02-12 23:58:06 +0400
commita397009181c8fa76501f09029d7f308e4961df51 (patch)
treeb18e35edddad2aaf1e5ef23c7c291c438f884777 /source/blender/windowmanager
parent70905a6e02a05b650acfb894265b3a2d201f193b (diff)
Fix T38541: sys.exit fails when blender is built as a py-module
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c
index e0ec9c994db..5b1fd90a0df 100644
--- a/source/blender/windowmanager/intern/wm_init_exit.c
+++ b/source/blender/windowmanager/intern/wm_init_exit.c
@@ -522,20 +522,21 @@ void WM_exit_ext(bContext *C, const bool do_python)
MEM_printmemlist();
}
wm_autosave_delete();
-
+}
+
+void WM_exit(bContext *C)
+{
+ WM_exit_ext(C, 1);
+
printf("\nBlender quit\n");
-
-#ifdef WIN32
+
+#ifdef WIN32
/* ask user to press a key when in debug mode */
if (G.debug & G_DEBUG) {
printf("Press any key to exit . . .\n\n");
wait_for_console_key();
}
-#endif
-}
+#endif
-void WM_exit(bContext *C)
-{
- WM_exit_ext(C, 1);
exit(G.is_break == TRUE);
}