diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-03-13 05:58:27 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-03-13 05:58:27 +0300 |
commit | 266cdf955ebe01a66e6ccb791d3943323bcbb94d (patch) | |
tree | f5c9ca48a1e998d3edb54ae160d5e286f4da2519 | |
parent | 0f1d7a5796e530e8843dfae7f8e0dfd41fa9465d (diff) |
Eevee: Render: Allow cancel during probe update.
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_render.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_render.c b/source/blender/draw/engines/eevee/eevee_render.c index 7165ed8d7ae..001b7de7446 100644 --- a/source/blender/draw/engines/eevee/eevee_render.c +++ b/source/blender/draw/engines/eevee/eevee_render.c @@ -433,6 +433,10 @@ void EEVEE_render_draw(EEVEE_Data *vedata, RenderEngine *engine, RenderLayer *rl /* Refresh Probes */ while (EEVEE_lightprobes_all_probes_ready(sldata, vedata) == false) { EEVEE_lightprobes_refresh(sldata, vedata); + /* Refreshing probes can take some times, allow exit. */ + if (RE_engine_test_break(engine)) { + return; + } } EEVEE_lightprobes_refresh_planar(sldata, vedata); DRW_uniformbuffer_update(sldata->common_ubo, &sldata->common_data); |