From 465b6333ccb5b56ced54ca342c60086c60ab21db Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 20 Oct 2017 00:19:58 +1100 Subject: Correct last commit, use WM_exit Without this temp directory isn't removed. --- source/creator/creator_args.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/creator') diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c index 322b93f4f42..19f30584f89 100644 --- a/source/creator/creator_args.c +++ b/source/creator/creator_args.c @@ -1775,7 +1775,8 @@ static int arg_handle_load_file(int UNUSED(argc), const char **argv, void *data) } else { printf("Error: argument has no '.blend' file extension, not using as new file, exiting! %s\n", filename); - exit(1); + G.is_break = true; + WM_exit(C); } } -- cgit v1.2.3