From 70c413d4add8602c50e6f03457ecf9004966a18f Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 30 Jan 2008 21:14:36 +0000 Subject: Fixes in reading back rendered temp files ("Save buffers" and "FSA" options). Press Rkey in compositor for reading back render results and invoke a compo. This now correctly reads AO (skipped it sometimes) and it makes a correct composite. FSA todo: - hotkey + button for reading all samples back + composite - solve black border around image --- source/blender/imbuf/intern/openexr/openexr_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/imbuf') diff --git a/source/blender/imbuf/intern/openexr/openexr_api.cpp b/source/blender/imbuf/intern/openexr/openexr_api.cpp index b124cb2f80c..0c92cc047a3 100644 --- a/source/blender/imbuf/intern/openexr/openexr_api.cpp +++ b/source/blender/imbuf/intern/openexr/openexr_api.cpp @@ -478,7 +478,7 @@ int IMB_exr_begin_read(void *handle, char *filename, int *width, int *height) { ExrHandle *data= (ExrHandle *)handle; - if(BLI_exists(filename)) { + if(BLI_exists(filename) && BLI_filepathsize(filename)>32) { /* 32 is arbitrary, but zero length files crashes exr */ data->ifile = new InputFile(filename); if(data->ifile) { Box2i dw = data->ifile->header().dataWindow(); -- cgit v1.2.3