diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-09-26 23:24:39 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-09-26 23:33:01 +0300 |
commit | 6012deddfea4a9526fe2acf02c591892867c32d7 (patch) | |
tree | c9b6dd2227a718b88d9160415948165f1a3f9de8 /source/blender/blenkernel | |
parent | cc1105f01b0294a4a9758559f8b4e4d2f86a5117 (diff) |
Fix T101365: saving second view layer as (non-Multilayer) OpenEXR does not work
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/image_save.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/image_save.cc b/source/blender/blenkernel/intern/image_save.cc index 7d7d49275ba..c24731efb41 100644 --- a/source/blender/blenkernel/intern/image_save.cc +++ b/source/blender/blenkernel/intern/image_save.cc @@ -791,8 +791,10 @@ bool BKE_image_render_write_exr(ReportList *reports, LISTBASE_FOREACH (RenderLayer *, rl, &rr->layers) { /* Skip other render layers if requested. */ if (!multi_layer && nr != layer) { + nr++; continue; } + nr++; LISTBASE_FOREACH (RenderPass *, rp, &rl->passes) { /* Skip non-RGBA and Z passes if not using multi layer. */ |