Fix T46826: EXR Compression method set in UI does not always get passed correctly to the actual OpenEXR writing code.

This commit is contained in:
Bastien Montagne 2015-11-20 19:22:20 +01:00
parent 7e71be261b
commit 9a2290a30b
Notes: blender-bot 2023-02-14 08:25:18 +01:00
Referenced by issue #46826, EXR Compression method set in UI does not always get passed correctly to the actual OpenEXR writing code
1 changed files with 1 additions and 0 deletions

View File

@ -2212,6 +2212,7 @@ void BKE_imbuf_write_prepare(ImBuf *ibuf, ImageFormatData *imf)
ibuf->ftype = IMB_FTYPE_OPENEXR;
if (imf->depth == R_IMF_CHAN_DEPTH_16)
ibuf->foptions.flag |= OPENEXR_HALF;
ibuf->foptions.flag &= ~OPENEXR_COMPRESS;
ibuf->foptions.flag |= (imf->exr_codec & OPENEXR_COMPRESS);
if (!(imf->flag & R_IMF_FLAG_ZBUF))