From 1cc19c699393eddc70697b95bcaa20673b15db7d Mon Sep 17 00:00:00 2001 From: Nathan Letwory Date: Sat, 6 Mar 2004 13:08:36 +0000 Subject: [PATCH] - [WIN32] Ask user to press enter after exiting Blender in debug mode. Previously it would either not fall back to the prompt or not close the new dos-box (ie. not started from a dos-box). --- source/blender/src/usiblender.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/blender/src/usiblender.c b/source/blender/src/usiblender.c index d9703c8024f..b76753d44b4 100644 --- a/source/blender/src/usiblender.c +++ b/source/blender/src/usiblender.c @@ -589,9 +589,11 @@ void exit_usiblender(void) printf("\nBlender quit\n"); #ifdef WIN32 - // when debugging enter infinite loop to enable - // reading the printouts... - while(G.f & G_DEBUG) {PIL_sleep_ms(10);} + /* ask user to press enter when in debug mode */ + if(G.f & G_DEBUG) { + printf("press enter key to exit...\n\n"); + getchar(); + } #endif