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:
Diffstat (limited to 'source/creator/creator.c')
-rw-r--r--source/creator/creator.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index f9aea0af301..eba6c7c292f 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -404,7 +404,7 @@ int main(int argc,
MEM_use_memleak_detection(false);
/* Parse environment handling arguments. */
- BLI_argsParse(ba, 0, NULL, NULL);
+ BLI_argsParse(ba, ARG_PASS_ENVIRONMENT, NULL, NULL);
#else
/* Using preferences or user startup makes no sense for #WITH_PYTHON_MODULE. */
@@ -419,7 +419,7 @@ int main(int argc,
#ifndef WITH_PYTHON_MODULE
/* First test for background-mode (#Global.background) */
- BLI_argsParse(ba, 1, NULL, NULL);
+ BLI_argsParse(ba, ARG_PASS_SETTINGS, NULL, NULL);
main_signal_setup();
#endif
@@ -459,14 +459,14 @@ int main(int argc,
if (G.background == 0) {
#ifndef WITH_PYTHON_MODULE
- BLI_argsParse(ba, 2, NULL, NULL);
- BLI_argsParse(ba, 3, NULL, NULL);
+ BLI_argsParse(ba, ARG_PASS_SETTINGS_GUI, NULL, NULL);
+ BLI_argsParse(ba, ARG_PASS_SETTINGS_FORCE, NULL, NULL);
#endif
WM_init(C, argc, (const char **)argv);
}
else {
#ifndef WITH_PYTHON_MODULE
- BLI_argsParse(ba, 3, NULL, NULL);
+ BLI_argsParse(ba, ARG_PASS_SETTINGS_FORCE, NULL, NULL);
#endif
WM_init(C, argc, (const char **)argv);
@@ -488,6 +488,7 @@ int main(int argc,
/* OK we are ready for it */
#ifndef WITH_PYTHON_MODULE
+ /* Handles #ARG_PASS_FINAL. */
main_args_setup_post(C, ba);
#endif