diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-11-26 01:38:07 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-11-26 01:38:07 +0300 |
commit | c2762c28e4d119d279f117f3e2ba50948991d36a (patch) | |
tree | ff4625b32dcbbbc446cc8ba2642d0e16587cd72d /source/blender/editors/mesh/editmesh.c | |
parent | 8709f13a3b69bf0ff66f513bb31f81a84115917a (diff) |
Editmesh undo: restore selection counts after undo
Diffstat (limited to 'source/blender/editors/mesh/editmesh.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh.c b/source/blender/editors/mesh/editmesh.c index bdb1df3b5c1..a286c0ad8e8 100644 --- a/source/blender/editors/mesh/editmesh.c +++ b/source/blender/editors/mesh/editmesh.c @@ -1771,6 +1771,11 @@ static void undoMesh_to_editMesh(void *umv, void *emv) EM_free_index_arrays(); } + /* restore total selections */ + EM_nvertices_selected(em); + EM_nedges_selected(em); + EM_nfaces_selected(em); + // XXX retopo_free_paint(); // em->retopo_paint_data= retopo_paint_data_copy(um->retopo_paint_data); // scene->toolsettings->retopo_mode= um->retopo_mode; |