Fix for compilation under non-windows platforms -- missed check for
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 8 Apr 2011 14:04:59 +0000 (14:04 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 8 Apr 2011 14:04:59 +0000 (14:04 +0000)
platform before WM_console_toggle call

source/blender/windowmanager/intern/wm_init_exit.c

index 38e66bc9f06db5ff8bc6bbddb339251bdc2859da..58485b1f54410033acea4cbfd6366887bd304ef6 100644 (file)
@@ -357,7 +357,9 @@ void WM_exit(bContext *C)
 
        sound_exit();
 
+#ifdef WIN32
        WM_console_toggle(C, 1); /* never leave behind invisible consoles */
+#endif
 
        /* first wrap up running stuff, we assume only the active WM is running */
        /* modal handlers are on window level freed, others too? */