diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-02-24 16:25:11 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-02-24 16:25:38 +0300 |
commit | f49e28bae71b7efa08df0fe6900595046fa31814 (patch) | |
tree | 9c450f997b0f2381818d3cd92f40a87ab56b413a /source | |
parent | 4c164487bc15854834577f2867623a83db75ed60 (diff) |
Cycles: Fix non-zero exit status when rendering animation from CLI and running out of memory
Diffstat (limited to 'source')
-rw-r--r-- | source/creator/creator_args.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c index 77ca055dcea..3c01c0c4476 100644 --- a/source/creator/creator_args.c +++ b/source/creator/creator_args.c @@ -1407,10 +1407,11 @@ static int arg_handle_render_animation(int UNUSED(argc), const char **UNUSED(arg Render *re = RE_NewRender(scene->id.name); ReportList reports; BLI_begin_threaded_malloc(); - BKE_reports_init(&reports, RPT_PRINT); + BKE_reports_init(&reports, RPT_STORE); RE_SetReports(re, &reports); RE_BlenderAnim(re, bmain, scene, NULL, scene->lay, scene->r.sfra, scene->r.efra, scene->r.frame_step); RE_SetReports(re, NULL); + BKE_reports_clear(&reports); BLI_end_threaded_malloc(); } else { |