Warn when --engine arg isn't found
authorCampbell Barton <ideasman42@gmail.com>
Mon, 8 Sep 2014 15:44:01 +0000 (01:44 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 8 Sep 2014 15:44:41 +0000 (01:44 +1000)
source/creator/creator.c

index 412ff374233bad642fdf5ab3c040d00f36797822..3937ae181430ce320854fa03e9ea3ebef91f3e1b 100644 (file)
@@ -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");