Commit: 2bceb3ae1859e67e4f6b487e999f0f81d7615fb3
Author: Dalai Felinto
Date:   Mon Apr 13 19:56:56 2015 -0300
Branches: master
https://developer.blender.org/rB2bceb3ae1859e67e4f6b487e999f0f81d7615fb3

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

===================================================================

M       source/blender/render/intern/source/render_result.c

===================================================================

diff --git a/source/blender/render/intern/source/render_result.c 
b/source/blender/render/intern/source/render_result.c
index 9ae394f..303494d 100644
--- a/source/blender/render/intern/source/render_result.c
+++ b/source/blender/render/intern/source/render_result.c
@@ -1025,7 +1025,7 @@ bool RE_WriteRenderResult(ReportList *reports, 
RenderResult *rr, const char *fil
        RenderPass *rpass;
        RenderView *rview;
        void *exrhandle = IMB_exr_get_handle();
-       bool success = false;
+       bool success;
        int a, nr;
        const char *chan_view = NULL;
        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)) {
                IMB_exr_write_channels(exrhandle);
+               success = true;
        }
        else {
                /* TODO, get the error from openexr's exception */

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to