diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-30 13:17:42 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-30 13:20:30 +0300 |
commit | a88a8528f11a8c3d9ee3cf999a92768940abe2ee (patch) | |
tree | 68f51fec8d11e1858c513b80ddab46bdf548f78d /source/blender/editors/render/render_update.c | |
parent | f4697b392d48302fc5df70208c22f4678150c702 (diff) |
Draw manager: Fix wrong engine type used for view update
Was causing temporal sampling artifacts when scene is set to Cycles
and viewport is set to Eevee. Visually was looking like ghosting or
motion blur when moving objects.
Diffstat (limited to 'source/blender/editors/render/render_update.c')
-rw-r--r-- | source/blender/editors/render/render_update.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/editors/render/render_update.c b/source/blender/editors/render/render_update.c index 1864cb0af6a..7da571f1941 100644 --- a/source/blender/editors/render/render_update.c +++ b/source/blender/editors/render/render_update.c @@ -120,9 +120,10 @@ void ED_render_scene_update(const DEGEditorUpdateContext *update_ctx, int update CTX_wm_window_set(C, win); for (sa = sc->areabase.first; sa; sa = sa->next) { - if (sa->spacetype != SPACE_VIEW3D) + if (sa->spacetype != SPACE_VIEW3D) { continue; - + } + View3D *v3d = sa->spacedata.first; for (ar = sa->regionbase.first; ar; ar = ar->next) { if (ar->regiontype != RGN_TYPE_WINDOW) { continue; @@ -143,7 +144,8 @@ void ED_render_scene_update(const DEGEditorUpdateContext *update_ctx, int update } else { - RenderEngineType *engine_type = RE_engines_find(scene->r.engine); + RenderEngineType *engine_type = + ED_view3d_engine_type(scene, v3d->drawtype); if (updated) { DRW_notify_view_update( (&(DRWUpdateContext){ |