forked from bartvdbraak/blender
Cycles: Fix non-zero exit status when rendering animation from CLI and running out of memory
This commit is contained in:
parent
4c164487bc
commit
f49e28bae7
@ -1407,10 +1407,11 @@ static int arg_handle_render_animation(int UNUSED(argc), const char **UNUSED(arg
|
|||||||
Render *re = RE_NewRender(scene->id.name);
|
Render *re = RE_NewRender(scene->id.name);
|
||||||
ReportList reports;
|
ReportList reports;
|
||||||
BLI_begin_threaded_malloc();
|
BLI_begin_threaded_malloc();
|
||||||
BKE_reports_init(&reports, RPT_PRINT);
|
BKE_reports_init(&reports, RPT_STORE);
|
||||||
RE_SetReports(re, &reports);
|
RE_SetReports(re, &reports);
|
||||||
RE_BlenderAnim(re, bmain, scene, NULL, scene->lay, scene->r.sfra, scene->r.efra, scene->r.frame_step);
|
RE_BlenderAnim(re, bmain, scene, NULL, scene->lay, scene->r.sfra, scene->r.efra, scene->r.frame_step);
|
||||||
RE_SetReports(re, NULL);
|
RE_SetReports(re, NULL);
|
||||||
|
BKE_reports_clear(&reports);
|
||||||
BLI_end_threaded_malloc();
|
BLI_end_threaded_malloc();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user