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>2020-09-15 05:55:09 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-09-15 06:33:34 +0300
commit971cc0ae03113eb0efe051d11aeae25cfe83d8f9 (patch)
tree5538aec73d36112e10517def0cb525ed762ccf6f /source/creator
parent62f2925e438fae25f0dab615a7932774586669f3 (diff)
Cleanup: make it clear WM_main isn't called in background-mode
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c10
1 files 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. */