diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-05-07 13:46:54 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-05-07 13:46:54 +0400 |
commit | 8ab5ae6a7843ae6b860cc30d59e39f4a4ddacb21 (patch) | |
tree | a0558156bf37413bbd4214b8b7150a81597a47e7 /source/blender/render | |
parent | 70a96a1089899f4f1e8541a56303742e1c192845 (diff) |
Exr reading error print has a bit more detail now, to debug problems.
Diffstat (limited to 'source/blender/render')
-rw-r--r-- | source/blender/render/intern/source/pipeline.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/render/intern/source/pipeline.c b/source/blender/render/intern/source/pipeline.c index c578d3ea502..0f4cfb636da 100644 --- a/source/blender/render/intern/source/pipeline.c +++ b/source/blender/render/intern/source/pipeline.c @@ -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; } |