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:
parent
26b2323189
commit
d59721c2c3
@ -1634,6 +1634,14 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
|
|||||||
}
|
}
|
||||||
} FOREACH_NODETREE_END
|
} 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)
|
void do_versions_after_linking_270(Main *main)
|
||||||
|
@ -88,7 +88,8 @@ EnumPropertyItem rna_enum_exr_codec_items[] = {
|
|||||||
{R_IMF_EXR_CODEC_B44, "B44", 0, "B44 (lossy)", ""},
|
{R_IMF_EXR_CODEC_B44, "B44", 0, "B44 (lossy)", ""},
|
||||||
{R_IMF_EXR_CODEC_B44A, "B44A", 0, "B44A (lossy)", ""},
|
{R_IMF_EXR_CODEC_B44A, "B44A", 0, "B44A (lossy)", ""},
|
||||||
{R_IMF_EXR_CODEC_DWAA, "DWAA", 0, "DWAA (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}
|
{0, NULL, 0, NULL, NULL}
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user