From e6371019e514abbeec8ef6380a625707fdd4edc9 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 13 Mar 2019 17:37:43 +1100 Subject: Fix T62484: Mesh undo ignores selection mode --- source/blender/editors/mesh/editmesh_undo.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors/mesh') diff --git a/source/blender/editors/mesh/editmesh_undo.c b/source/blender/editors/mesh/editmesh_undo.c index 649566e67cb..5ea3fa784a5 100644 --- a/source/blender/editors/mesh/editmesh_undo.c +++ b/source/blender/editors/mesh/editmesh_undo.c @@ -748,6 +748,9 @@ static void mesh_undosys_step_decode(struct bContext *C, struct Main *UNUSED(bma /* The first element is always active */ ED_undo_object_set_active_or_warn(CTX_data_view_layer(C), us->elems[0].obedit_ref.ptr, us_p->name, &LOG); + Scene *scene = CTX_data_scene(C); + scene->toolsettings->selectmode = us->elems[0].data.selectmode; + WM_event_add_notifier(C, NC_GEOM | ND_DATA, NULL); } -- cgit v1.2.3