diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-30 19:09:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-30 19:09:56 +0300 |
commit | 29377db3f1c427d50031a479b2c082a47c6ac163 (patch) | |
tree | 335180d00768dd48a72c68f00bc4e666f73874ed /source/blender/editors/mesh/editmesh_lib.c | |
parent | d4663166d6c4703d38302a2a80e1d327ff806ab7 (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/mesh/editmesh_lib.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_lib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh_lib.c b/source/blender/editors/mesh/editmesh_lib.c index b3e96729201..a5ce4ee5dcd 100644 --- a/source/blender/editors/mesh/editmesh_lib.c +++ b/source/blender/editors/mesh/editmesh_lib.c @@ -743,6 +743,11 @@ void EM_convertsel(EditMesh *em, short oldmode, short selectmode) EM_nfaces_selected(em); } +void EM_selectmode_to_scene(struct Scene *scene, struct Object *obedit) +{ + scene->toolsettings->selectmode= get_mesh(obedit)->edit_mesh->selectmode; +} + /* when switching select mode, makes sure selection is consistent for editing */ /* also for paranoia checks to make sure edge or face mode works */ void EM_selectmode_set(EditMesh *em) |