[Bf-blender-cvs] [3c00efc] master: Warn when --engine arg isn't found

Campbell Barton noreply at git.blender.org
Tue Sep 9 11:01:19 CEST 2014


Commit: 3c00efcf699d274484d47215e4a4dd925bcd0a26
Author: Campbell Barton
Date:   Tue Sep 9 01:44:01 2014 +1000
Branches: master
https://developer.blender.org/rB3c00efcf699d274484d47215e4a4dd925bcd0a26

Warn when --engine arg isn't found

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

M	source/creator/creator.c

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

diff --git a/source/creator/creator.c b/source/creator/creator.c
index 412ff37..3937ae1 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -817,6 +817,9 @@ static int set_engine(int argc, const char **argv, void *data)
 				if (BLI_findstring(&R_engines, argv[1], offsetof(RenderEngineType, idname))) {
 					BLI_strncpy_utf8(rd->engine, argv[1], sizeof(rd->engine));
 				}
+				else {
+					printf("\nError: engine not found '%s'\n", argv[1]);
+				}
 			}
 			else {
 				printf("\nError: no blend loaded. order the arguments so '-E  / --engine ' is after a blend is loaded.\n");




More information about the Bf-blender-cvs mailing list