diff options
Diffstat (limited to 'source/blender/editors/render')
-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){ |