From 29377db3f1c427d50031a479b2c082a47c6ac163 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 30 Jan 2010 16:09:56 +0000 Subject: [#19872] Mesh edit missing undo push for mode changing copy the editmesh select mode back to the scene on undo. --- source/blender/editors/util/editmode_undo.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/editors/util/editmode_undo.c') diff --git a/source/blender/editors/util/editmode_undo.c b/source/blender/editors/util/editmode_undo.c index a21ff088f2e..f58cd148dec 100644 --- a/source/blender/editors/util/editmode_undo.c +++ b/source/blender/editors/util/editmode_undo.c @@ -269,6 +269,11 @@ void undo_editmode_step(bContext *C, int step) } } + /* special case for editmesh, mode must be copied back to the scene */ + if(obedit->type == OB_MESH) { + EM_selectmode_to_scene(CTX_data_scene(C), obedit); + } + DAG_id_flush_update(&obedit->id, OB_RECALC_DATA); /* XXX notifiers */ -- cgit v1.2.3