[Bf-blender-cvs] [4d44560] master: Quit blender with non-zero exit code if tryign to use non-existing render engine via the command line

Sergey Sharybin noreply at git.blender.org
Thu Jan 22 11:23:53 CET 2015


Commit: 4d4456015ca34d07ba513514dfe141bee18d4b8c
Author: Sergey Sharybin
Date:   Thu Jan 22 15:23:09 2015 +0500
Branches: master
https://developer.blender.org/rB4d4456015ca34d07ba513514dfe141bee18d4b8c

Quit blender with non-zero exit code if tryign to use non-existing render engine via the command line

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

M	source/creator/creator.c

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

diff --git a/source/creator/creator.c b/source/creator/creator.c
index 83741a6..67932bc 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -773,6 +773,7 @@ static int set_engine(int argc, const char **argv, void *data)
 				}
 				else {
 					printf("\nError: engine not found '%s'\n", argv[1]);
+					exit(1);
 				}
 			}
 			else {




More information about the Bf-blender-cvs mailing list