Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-03-13 09:37:43 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-13 09:37:43 +0300
commite6371019e514abbeec8ef6380a625707fdd4edc9 (patch)
tree8e2479d1c993580e95ca994f25878db546478ce6 /source/blender/editors/mesh/editmesh_undo.c
parent2bc6858021f920e3e930db2e466f239a3b9784bd (diff)
Fix T62484: Mesh undo ignores selection mode
Diffstat (limited to 'source/blender/editors/mesh/editmesh_undo.c')
-rw-r--r--source/blender/editors/mesh/editmesh_undo.c3
1 files changed, 3 insertions, 0 deletions
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);
}