From 8db2f72997cc72259157d7fc42b54fa5a292f424 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Thu, 22 Dec 2016 21:58:57 +0100 Subject: Fix (unreported) `--threads` option no more respected by main task scheduler. Main scheduler would be created way before `-t` argument would be parsed, since it was on forth pass! Moved it to first pass of argparse, that kind of stuff should be initialized asap on startup. --- source/creator/creator_args.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/creator') diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c index 9f845d29c18..4eb72fb1619 100644 --- a/source/creator/creator_args.c +++ b/source/creator/creator_args.c @@ -1886,7 +1886,7 @@ void main_args_setup(bContext *C, bArgs *ba, SYS_SystemHandle *syshandle) BLI_argsAdd(ba, 4, "-E", "--engine", CB(arg_handle_engine_set), C); BLI_argsAdd(ba, 4, "-F", "--render-format", CB(arg_handle_image_type_set), C); - BLI_argsAdd(ba, 4, "-t", "--threads", CB(arg_handle_threads_set), NULL); + BLI_argsAdd(ba, 1, "-t", "--threads", CB(arg_handle_threads_set), NULL); BLI_argsAdd(ba, 4, "-x", "--use-extension", CB(arg_handle_extension_set), C); #undef CB -- cgit v1.2.3