diff options
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 4 | ||||
-rw-r--r-- | source/creator/creator_args.c | 10 |
2 files changed, 6 insertions, 8 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index 713ebdaadec..b257564519a 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -447,8 +447,8 @@ int main(int argc, /* TODO - U.pythondir */ #else printf( - "\n* WARNING * - Blender compiled without Python!\nthis is not intended for typical " - "usage\n\n"); + "\n* WARNING * - Blender compiled without Python!\n" + "this is not intended for typical usage\n\n"); #endif CTX_py_init_set(C, 1); diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c index afe9a135c79..f3e4d976d85 100644 --- a/source/creator/creator_args.c +++ b/source/creator/creator_args.c @@ -274,8 +274,7 @@ static bool parse_int_clamp(const char *str, * that parses a comma separated list of numbers. */ static int *parse_int_relative_clamp_n( - const char *str, int pos, int neg, int min, int max, - int *r_value_len, const char **r_err_msg) + const char *str, int pos, int neg, int min, int max, int *r_value_len, const char **r_err_msg) { const char sep = ','; int len = 1; @@ -293,19 +292,18 @@ static int *parse_int_relative_clamp_n( static const char *msg = "incorrect comma use"; *r_err_msg = msg; goto fail; - } else if (parse_int_relative_clamp(str, str_end, pos, neg, min, max, &values[i], r_err_msg)) { i++; } else { - goto fail; /* error message already set */ + goto fail; /* error message already set */ } - if (str_end) { /* next */ + if (str_end) { /* next */ str = str_end + 1; } - else { /* finished */ + else { /* finished */ break; } } |