Correct last commit, use WM_exit
authorCampbell Barton <ideasman42@gmail.com>
Thu, 19 Oct 2017 13:19:58 +0000 (00:19 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 19 Oct 2017 13:19:58 +0000 (00:19 +1100)
Without this temp directory isn't removed.

source/creator/creator_args.c

index 322b93f..19f3058 100644 (file)
@@ -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);
                }
        }