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>2010-01-30 19:09:56 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-01-30 19:09:56 +0300
commit29377db3f1c427d50031a479b2c082a47c6ac163 (patch)
tree335180d00768dd48a72c68f00bc4e666f73874ed /source/blender/editors/util/editmode_undo.c
parentd4663166d6c4703d38302a2a80e1d327ff806ab7 (diff)
[#19872] Mesh edit missing undo push for mode changing
copy the editmesh select mode back to the scene on undo.
Diffstat (limited to 'source/blender/editors/util/editmode_undo.c')
-rw-r--r--source/blender/editors/util/editmode_undo.c5
1 files changed, 5 insertions, 0 deletions
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 */