Workspace: Move engines to workspace and Properties Editor cleanup
[blender.git] / source / blender / editors / render / render_update.c
index ccea1e5930c6d5cb66eb2e87c68486effba2ed5b..f160b71f633f65ba48d6e33614b9a15ffa8d557c 100644 (file)
@@ -141,7 +141,7 @@ void ED_render_scene_update(Main *bmain, Scene *scene, int updated)
                                        engine->type->view_update(engine, C);
 
                                }
-                               else if ((RE_engines_find(scene->r.engine)->flag & RE_USE_LEGACY_PIPELINE) == 0) {
+                               else if ((RE_engines_find(scene->view_render.engine_id)->flag & RE_USE_LEGACY_PIPELINE) == 0) {
                                        if (updated) {
                                                CTX_wm_screen_set(C, sc);
                                                CTX_wm_area_set(C, sa);