diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-02-01 23:08:05 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-02-01 23:08:05 +0300 |
commit | 7049bcf76e720f88b7b78510eb50b89baf046299 (patch) | |
tree | f663f7261e38ce2b9572a10d7e50cbc8558aa24b | |
parent | 00f1bc168505bcffe150f5f75db79778bdead51e (diff) |
Eevee: Render: Fix broken "non-multiview" render.
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index 27496d31171..17a1b2f7ca2 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -3628,12 +3628,17 @@ void DRW_render_to_image(RenderEngine *re, struct Depsgraph *depsgraph) glDisable(GL_SCISSOR_TEST); glViewport(0, 0, size[0], size[1]); - for (SceneRenderView *srv = r->views.first; srv; srv = srv->next) { - if (BKE_scene_multiview_is_render_view_active(r, srv) == false) - continue; + if ((r->scemode & R_MULTIVIEW) != 0) { + for (SceneRenderView *srv = r->views.first; srv; srv = srv->next) { + if (BKE_scene_multiview_is_render_view_active(r, srv) == false) + continue; - RE_SetActiveRenderView(render, srv->name); + RE_SetActiveRenderView(render, srv->name); + engine_type->draw_engine->render_to_image(data, re, depsgraph); + } + } + else { engine_type->draw_engine->render_to_image(data, re, depsgraph); } |