Fix #120885: Ensure EXR view_format selection in stereo #120904

Open
YimingWu wants to merge 2 commits from ChengduLittleA/blender:fix-120885 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 12 additions and 0 deletions

View File

@ -1396,6 +1396,18 @@ static void rna_ImageFormatSettings_file_format_set(PointerRNA *ptr, int value)
# endif
(void)rd;
}
/* Verify `imf->views_format`. */
if (imf->imtype == R_IMF_IMTYPE_MULTILAYER) {
if (imf->views_format == R_IMF_VIEWS_STEREO_3D) {
imf->views_format = R_IMF_VIEWS_MULTIVIEW;
}
}
else if (imf->imtype != R_IMF_IMTYPE_OPENEXR) {
if (imf->views_format == R_IMF_VIEWS_MULTIVIEW) {
imf->views_format = R_IMF_VIEWS_INDIVIDUAL;
}
}
}
static const EnumPropertyItem *rna_ImageFormatSettings_file_format_itemf(bContext * /*C*/,