[Bf-blender-cvs] [8db2f72] master: Fix (unreported) `--threads` option no more respected by main task scheduler.
Bastien Montagne
noreply at git.blender.org
Thu Dec 22 22:01:58 CET 2016
Commit: 8db2f72997cc72259157d7fc42b54fa5a292f424
Author: Bastien Montagne
Date: Thu Dec 22 21:58:57 2016 +0100
Branches: master
https://developer.blender.org/rB8db2f72997cc72259157d7fc42b54fa5a292f424
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.
===================================================================
M source/creator/creator_args.c
===================================================================
diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c
index 9f845d2..4eb72fb 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
More information about the Bf-blender-cvs
mailing list