From 971cc0ae03113eb0efe051d11aeae25cfe83d8f9 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 15 Sep 2020 12:55:09 +1000 Subject: Cleanup: make it clear WM_main isn't called in background-mode --- source/creator/creator.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/source/creator/creator.c b/source/creator/creator.c index d2bfcb64b53..9df0ece26b5 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -518,11 +518,7 @@ int main(int argc, (void)argv; #endif -#ifdef WITH_PYTHON_MODULE - /* Keep blender in background-mode running. */ - return 0; -#endif - +#ifndef WITH_PYTHON_MODULE if (G.background) { /* Using window-manager API in background-mode is a bit odd, but works fine. */ WM_exit(C); @@ -531,9 +527,9 @@ int main(int argc, if (!G.file_loaded) { WM_init_splash(C); } + WM_main(C); } - - WM_main(C); +#endif /* WITH_PYTHON_MODULE */ return 0; } /* End of int main(...) function. */ -- cgit v1.2.3