[Bf-blender-cvs] [465b6333ccb] master: Correct last commit, use WM_exit

Campbell Barton noreply at git.blender.org
Thu Oct 19 15:17:17 CEST 2017


Commit: 465b6333ccb5b56ced54ca342c60086c60ab21db
Author: Campbell Barton
Date:   Fri Oct 20 00:19:58 2017 +1100
Branches: master
https://developer.blender.org/rB465b6333ccb5b56ced54ca342c60086c60ab21db

Correct last commit, use WM_exit

Without this temp directory isn't removed.

===================================================================

M	source/creator/creator_args.c

===================================================================

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);
 		}
 	}



More information about the Bf-blender-cvs mailing list