Merged changes in the trunk up to revision 25613.
[blender.git] / source / creator / creator.c
index dca8e01bcd345a75076323f3f5504c8de5d85355..1caf2f6c66b91ee89d998cc6b078aa58962f7bc8 100644 (file)
@@ -657,10 +657,13 @@ int main(int argc, char **argv)
                                        if (a < argc) {
                                                int frame = atoi(argv[a]);
                                                Render *re = RE_NewRender(scene->id.name);
+                                               ReportList reports;
+
+                                               BKE_reports_init(&reports, RPT_PRINT);
 
                                                frame = MIN2(MAXFRAME, MAX2(MINAFRAME, frame));
                                                
-                                               RE_BlenderAnim(re, scene, frame, frame, scene->r.frame_step);
+                                               RE_BlenderAnim(re, scene, frame, frame, scene->r.frame_step, &reports);
                                        }
                                } else {
                                        printf("\nError: no blend loaded. cannot use '-f'.\n");
@@ -670,7 +673,9 @@ int main(int argc, char **argv)
                                if (CTX_data_scene(C)) {
                                        Scene *scene= CTX_data_scene(C);
                                        Render *re= RE_NewRender(scene->id.name);
-                                       RE_BlenderAnim(re, scene, scene->r.sfra, scene->r.efra, scene->r.frame_step);
+                                       ReportList reports;
+                                       BKE_reports_init(&reports, RPT_PRINT);
+                                       RE_BlenderAnim(re, scene, scene->r.sfra, scene->r.efra, scene->r.frame_step, &reports);
                                } else {
                                        printf("\nError: no blend loaded. cannot use '-a'.\n");
                                }