Commit: 266cdf955ebe01a66e6ccb791d3943323bcbb94d
Author: Clément Foucault
Date:   Tue Mar 13 03:58:27 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB266cdf955ebe01a66e6ccb791d3943323bcbb94d

Eevee: Render: Allow cancel during probe update.

===================================================================

M       source/blender/draw/engines/eevee/eevee_render.c

===================================================================

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);

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to