diff options
author | Geoffrey Bantle <hairbat@yahoo.com> | 2006-02-22 21:35:12 +0300 |
---|---|---|
committer | Geoffrey Bantle <hairbat@yahoo.com> | 2006-02-22 21:35:12 +0300 |
commit | 99269c1f32c1a962c71a5c47d811f664e66cc739 (patch) | |
tree | 6e60a3e5b325599d3f8835b8f37ca2abfe9b79ed /source/blender/src/editmesh_mods.c | |
parent | 30437b47edc8ed1b83a428020fa06d9223fc2b1c (diff) |
"Select Random" in editmode for meshes did not do an undo_push... This was
pretty annoying so I fixed it.
Diffstat (limited to 'source/blender/src/editmesh_mods.c')
-rw-r--r-- | source/blender/src/editmesh_mods.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/source/blender/src/editmesh_mods.c b/source/blender/src/editmesh_mods.c index 0778b360798..49d30cf8016 100644 --- a/source/blender/src/editmesh_mods.c +++ b/source/blender/src/editmesh_mods.c @@ -1880,6 +1880,9 @@ void selectrandom_mesh(void) /* randomly selects a user-set % of vertices/edges/ eve->f |= SELECT; } } + EM_selectmode_flush(); + countall(); + BIF_undo_push("Select Random: Vertices"); } else if(G.scene->selectmode & SCE_SELECT_EDGE) { for(eed= em->edges.first; eed; eed= eed->next) { @@ -1888,6 +1891,9 @@ void selectrandom_mesh(void) /* randomly selects a user-set % of vertices/edges/ EM_select_edge(eed, 1); } } + EM_selectmode_flush(); + countall(); + BIF_undo_push("Select Random:Edges"); } else { for(efa= em->faces.first; efa; efa= efa->next) { @@ -1896,11 +1902,11 @@ void selectrandom_mesh(void) /* randomly selects a user-set % of vertices/edges/ EM_select_face(efa, 1); } } + + EM_selectmode_flush(); + countall(); + BIF_undo_push("Select Random:Faces"); } - - EM_selectmode_flush(); - - countall(); allqueue(REDRAWVIEW3D, 0); } |