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>2009-01-15 21:06:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-01-15 21:06:06 +0300
commitc0ecbfce0ec729164d93bc01d2ac8a485608770c (patch)
treefa1d79f2e582b4afa60b7976a8df430ba14f33aa /source/creator
parent509ca83ef1d10fab4903981714cfab3719280e04 (diff)
blender was crashing if no argument was given after '-t'
mesh.faces.deltete(...) with an empty list no longer returns an error.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index a6111210593..9d6841c3708 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -785,10 +785,14 @@ int main(int argc, char **argv)
case 't':
a++;
- if(G.background) {
- RE_set_max_threads(atoi(argv[a]));
+ if (a < argc) {
+ if(G.background) {
+ RE_set_max_threads(atoi(argv[a]));
+ } else {
+ printf("Warning: threads can only be set in background mode\n");
+ }
} else {
- printf("Warning: threads can only be set in background mode\n");
+ printf("\nError: you must specify a number of threads between 0 and 8 '-t '.\n");
}
break;
case 'x': /* extension */