diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-10-03 20:59:33 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-10-03 22:59:20 +0300 |
commit | 42f40657f143f4f8f0c473daf8d54bab6d7c303e (patch) | |
tree | 8a2b95e07a8253cc05b053a944195f4b5a864674 /source/blender/render/intern | |
parent | 9b7c84f293b6ad5d855b175ba664d4bd0d72c18d (diff) |
Images: remove option to choose between BW/RGB/RGBA for multilayer EXR save
This was not properly respected, and in general with multiple passes and layers
it's unclear what this should do exactly without breaking some render passes.
Better to keep this image format for raw unmodified render results.
Diffstat (limited to 'source/blender/render/intern')
-rw-r--r-- | source/blender/render/intern/render_result.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/render_result.cc b/source/blender/render/intern/render_result.cc index 7c4b0713d7c..d8179c4c495 100644 --- a/source/blender/render/intern/render_result.cc +++ b/source/blender/render/intern/render_result.cc @@ -1055,7 +1055,7 @@ ImBuf *RE_render_result_rect_to_ibuf(RenderResult *rr, /* Color -> gray-scale. */ /* editing directly would alter the render view */ - if (imf->planes == R_IMF_PLANES_BW) { + if (imf->planes == R_IMF_PLANES_BW && imf->imtype != R_IMF_IMTYPE_MULTILAYER) { ImBuf *ibuf_bw = IMB_dupImBuf(ibuf); IMB_color_to_bw(ibuf_bw); IMB_freeImBuf(ibuf); |