diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2015-04-24 00:16:33 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2015-04-24 00:16:55 +0300 |
commit | 1076adb4587c5fd61258dcb7c79fbfef36b74539 (patch) | |
tree | effff3ffd44500c9c33a9c68851c5af7cf889ae2 /source | |
parent | dc734da46e65cd3fdb0bb4fe586672799f3e5d11 (diff) |
OpenEXR: RenderResult should always have a RenderView
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/imbuf/intern/openexr/openexr_api.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/source/blender/imbuf/intern/openexr/openexr_api.cpp b/source/blender/imbuf/intern/openexr/openexr_api.cpp index f3b89f26703..58c5be8b110 100644 --- a/source/blender/imbuf/intern/openexr/openexr_api.cpp +++ b/source/blender/imbuf/intern/openexr/openexr_api.cpp @@ -1235,9 +1235,15 @@ void IMB_exr_multilayer_convert(void *handle, void *base, ExrLayer *lay; ExrPass *pass; - /* add views to RenderResult */ - for (StringVector::const_iterator i = data->multiView->begin(); i != data->multiView->end(); ++i) { - addview(base, (*i).c_str()); + /* RenderResult needs at least one RenderView */ + if (data->multiView->size() == 0) { + addview(base, ""); + } + else { + /* add views to RenderResult */ + for (StringVector::const_iterator i = data->multiView->begin(); i != data->multiView->end(); ++i) { + addview(base, (*i).c_str()); + } } if (BLI_listbase_is_empty(&data->layers)) { |