From 8b9503e0ecb9c1f524278df0fafda409425b21da Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 23 Jun 2008 16:47:15 +0000 Subject: bugfix [#14796] -t command line switch doesn't work unless FIXED_THREADS has previously been turned on Command line threads now override blendfile setting in background mode. Command line Threads greater then 8 are now clamped. --- source/creator/creator.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/creator') diff --git a/source/creator/creator.c b/source/creator/creator.c index 2e6b5d7353e..9589f1e3e94 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -195,7 +195,7 @@ static void print_help(void) printf (" (formats that can be compiled into blender, not available on all systems)\n"); printf (" \tHDR TIFF EXR MULTILAYER MPEG AVICODEC QUICKTIME CINEON DPX DDS\n"); printf (" -x \tSet option to add the file extension to the end of the file.\n"); - printf (" -t \tUse amount of for rendering.\n"); + printf (" -t \tUse amount of for rendering (background mode only).\n"); printf (" [1-8], 0 for systems processor count.\n"); printf ("\nAnimation playback options:\n"); printf (" -a \tPlayback , only operates this way when -b is not used.\n"); @@ -723,6 +723,8 @@ int main(int argc, char **argv) a++; if(G.background) { RE_set_max_threads(atoi(argv[a])); + } else { + printf("Warning: threads can only be set in background mode\n"); } break; case 'x': /* extension */ -- cgit v1.2.3