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:
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
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue