[Bf-blender-cvs] [e6371019e51] master: Fix T62484: Mesh undo ignores selection mode
Campbell Barton
noreply at git.blender.org
Wed Mar 13 07:39:16 CET 2019
Commit: e6371019e514abbeec8ef6380a625707fdd4edc9
Author: Campbell Barton
Date: Wed Mar 13 17:37:43 2019 +1100
Branches: master
https://developer.blender.org/rBe6371019e514abbeec8ef6380a625707fdd4edc9
Fix T62484: Mesh undo ignores selection mode
===================================================================
M source/blender/editors/mesh/editmesh_undo.c
===================================================================
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);
}
More information about the Bf-blender-cvs
mailing list