Workspace: Move engines to workspace and Properties Editor cleanup
[blender.git] / source / blender / editors / interface / interface_templates.c
index ebd4ce36bbe304caf2bb168a775bf2a8aa4baf26..f2ee8a117066f05e3db9d6eab5e64309955da3fd 100644 (file)
@@ -1193,7 +1193,7 @@ static uiLayout *draw_modifier(
                /* When Modifier is a simulation, show button to switch to context rather than the delete button. */
                if (modifier_can_delete(md) &&
                    (!modifier_is_simulation(md) ||
-                    STREQ(scene->r.engine, RE_engine_id_BLENDER_GAME)))
+                    STREQ(scene->view_render.engine_id, RE_engine_id_BLENDER_GAME)))
                {
                        uiItemO(row, "", ICON_X, "OBJECT_OT_modifier_remove");
                }