diff options
author | Ton Roosendaal <ton@blender.org> | 2006-12-21 00:34:20 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-12-21 00:34:20 +0300 |
commit | ed853e00da6a984c7a38f07301b7ce6d4cd597f7 (patch) | |
tree | 020494c5d9c3cacfb34fec2112cafb800a69e908 /source/blender/imbuf | |
parent | 9dd36f08eee18a322a28761a7a4af3a8692425da (diff) |
Function returned no '1', causing multilayer files to not read, except
for me of course :)
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/openexr/openexr_api.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/openexr/openexr_api.cpp b/source/blender/imbuf/intern/openexr/openexr_api.cpp index 25ca958afdb..833008c3d7e 100644 --- a/source/blender/imbuf/intern/openexr/openexr_api.cpp +++ b/source/blender/imbuf/intern/openexr/openexr_api.cpp @@ -675,6 +675,7 @@ static int imb_exr_split_channel_name(ExrChannel *echan, char *layname, char *pa layname[len]= 0; } // printf("found lay %s pass %s chan %c\n", layname, passname, echan->chan_id); + return 1; } static ExrLayer *imb_exr_get_layer(ListBase *lb, char *layname) @@ -728,7 +729,7 @@ static ExrHandle *imb_exr_begin_read_mem(InputFile *file, int width, int height) data->height= height; const ChannelList &channels = data->ifile->header().channels(); - + for (ChannelList::ConstIterator i = channels.begin(); i != channels.end(); ++i) IMB_exr_add_channel(data, NULL, i.name(), 0, 0, NULL); @@ -877,7 +878,7 @@ struct ImBuf *imb_load_openexr(unsigned char *mem, int size, int flags) //printf("OpenEXR-load: image data window %d %d %d %d\n", // dw.min.x, dw.min.y, dw.max.x, dw.max.y); - //exr_print_filecontents(file); + // exr_print_filecontents(file); is_multi= exr_is_renderresult(file); |