Fix for *harmless* T44342 Error when saving multilayer EXR

This was introduced with multiview, and it was an oversight on my end.
There is no error, we simply was never returning True
This commit is contained in:
Dalai Felinto 2015-04-13 19:56:56 -03:00
parent 54c18d4849
commit 2bceb3ae18

@ -1025,7 +1025,7 @@ bool RE_WriteRenderResult(ReportList *reports, RenderResult *rr, const char *fil
RenderPass *rpass; RenderPass *rpass;
RenderView *rview; RenderView *rview;
void *exrhandle = IMB_exr_get_handle(); void *exrhandle = IMB_exr_get_handle();
bool success = false; bool success;
int a, nr; int a, nr;
const char *chan_view = NULL; const char *chan_view = NULL;
int compress = (imf ? imf->exr_codec : 0); int compress = (imf ? imf->exr_codec : 0);
@ -1111,6 +1111,7 @@ bool RE_WriteRenderResult(ReportList *reports, RenderResult *rr, const char *fil
if (IMB_exr_begin_write(exrhandle, filename, width, height, compress)) { if (IMB_exr_begin_write(exrhandle, filename, width, height, compress)) {
IMB_exr_write_channels(exrhandle); IMB_exr_write_channels(exrhandle);
success = true;
} }
else { else {
/* TODO, get the error from openexr's exception */ /* TODO, get the error from openexr's exception */