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-10-30 05:11:35 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-10-30 05:30:16 +0300
commitb018582cd3f664912b4fa012c56d3286e1bb0508 (patch)
tree0637ef7d064f406dad1e2cb209a43192b1c1b7c6 /source/creator/creator_args.c
parent6ab8cbc68cd1b6c2e8f30e42c57585fa8defaf05 (diff)
Cleanup: parse '--thread' as part of ARG_PASS_ENVIRONMENT
While this isn't needed at the moment, it's possible the animation player uses the scheduler in the future.
Diffstat (limited to 'source/creator/creator_args.c')
-rw-r--r--source/creator/creator_args.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c
index ef1c8e935c3..a36bdbf8a87 100644
--- a/source/creator/creator_args.c
+++ b/source/creator/creator_args.c
@@ -2071,6 +2071,8 @@ void main_args_setup(bContext *C, bArgs *ba)
BLI_argsAdd(ba, NULL, "--env-system-scripts", CB_EX(arg_handle_env_system_set, scripts), NULL);
BLI_argsAdd(ba, NULL, "--env-system-python", CB_EX(arg_handle_env_system_set, python), NULL);
+ BLI_argsAdd(ba, "-t", "--threads", CB(arg_handle_threads_set), NULL);
+
/* Pass: Background Mode & Settings
*
* Also and commands that exit after usage. */
@@ -2088,8 +2090,6 @@ void main_args_setup(bContext *C, bArgs *ba)
BLI_argsAdd(ba, NULL, "--disable-crash-handler", CB(arg_handle_crash_handler_disable), NULL);
BLI_argsAdd(ba, NULL, "--disable-abort-handler", CB(arg_handle_abort_handler_disable), NULL);
- BLI_argsAdd(ba, "-t", "--threads", CB(arg_handle_threads_set), NULL);
-
BLI_argsAdd(ba, "-b", "--background", CB(arg_handle_background_mode_set), NULL);
BLI_argsAdd(ba, "-a", NULL, CB(arg_handle_playback_mode), NULL);