Exr reading error print has a bit more detail now, to debug problems.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 7 May 2010 09:46:54 +0000 (09:46 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 7 May 2010 09:46:54 +0000 (09:46 +0000)
source/blender/render/intern/source/pipeline.c

index c578d3ea502bc02e9f1fb28abc6f01ab41da7631..0f4cfb636dae387bc17ede83fc0ffaced7bf02f8 100644 (file)
@@ -927,12 +927,16 @@ static int read_render_result_from_file(char *filename, RenderResult *rr)
        int rectx, recty;
 
        if(IMB_exr_begin_read(exrhandle, filename, &rectx, &recty)==0) {
+               printf("failed being read %s\n", filename);
                IMB_exr_close(exrhandle);
                return 0;
        }
-       
+
        if(rr == NULL || rectx!=rr->rectx || recty!=rr->recty) {
-               printf("error in reading render result\n");
+               if(rr)
+                       printf("error in reading render result: dimensions don't match\n");
+               else
+                       printf("error in reading render result: NULL result pointer\n");
                IMB_exr_close(exrhandle);
                return 0;
        }