Fix T50673: OpenEXR multilayer image truncated on save

The issue is in OpenEXR itself. See the report fomr some more details.
This commit is contained in:
Sergey Sharybin 2017-05-16 16:34:49 +02:00
parent 26b2323189
commit d59721c2c3
Notes: blender-bot 2023-02-14 07:13:06 +01:00
Referenced by commit b1bd0f8ffd, Enable OpenEXR DWAB compresstion
Referenced by issue #50673, OpenEXR multilayer image truncated on save
2 changed files with 10 additions and 1 deletions

View File

@ -1634,6 +1634,14 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
}
} FOREACH_NODETREE_END
}
{
for (Scene *scene = main->scene.first; scene; scene = scene->id.next) {
if (scene->r.im_format.exr_codec == R_IMF_EXR_CODEC_DWAB) {
scene->r.im_format.exr_codec = R_IMF_EXR_CODEC_DWAA;
}
}
}
}
void do_versions_after_linking_270(Main *main)

View File

@ -88,7 +88,8 @@ EnumPropertyItem rna_enum_exr_codec_items[] = {
{R_IMF_EXR_CODEC_B44, "B44", 0, "B44 (lossy)", ""},
{R_IMF_EXR_CODEC_B44A, "B44A", 0, "B44A (lossy)", ""},
{R_IMF_EXR_CODEC_DWAA, "DWAA", 0, "DWAA (lossy)", ""},
{R_IMF_EXR_CODEC_DWAB, "DWAB", 0, "DWAB (lossy)", ""},
/* NOTE: Commented out for until new OpenEXR is released, see T50673. */
/* {R_IMF_EXR_CODEC_DWAB, "DWAB", 0, "DWAB (lossy)", ""}, */
{0, NULL, 0, NULL, NULL}
};
#endif