diff options
author | Matt Ebb <matt@mke3.net> | 2004-01-07 10:30:29 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2004-01-07 10:30:29 +0300 |
commit | 38e88310b04736abfdc24150cd880204472328ed (patch) | |
tree | 63a95396581ab72c8a35b46de9fd754ddf9c30c2 /source | |
parent | 3e17164a6c2e09cee926e1212ef2028eca963953 (diff) |
Small usability fix for Knife Subdivide
* If there are no selected edges when the function's
invoked, it now gives an error message and returns.
If anyone can think of a better message, please suggest it
(or just commit it ;)
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/editmesh.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/src/editmesh.c b/source/blender/src/editmesh.c index 0d0cecfa717..efd890724f2 100644 --- a/source/blender/src/editmesh.c +++ b/source/blender/src/editmesh.c @@ -7416,7 +7416,12 @@ void KnifeSubdivide(char mode){ Window *win; if (G.obedit==0) return; - + + if (editmesh_nvertices_selected() < 2) { + error("No edges are selected to operate on"); + return; + } + if (mode==KNIFE_PROMPT) { short val= pupmenu("Cut Type %t|Exact Line%x1|Midpoints%x2"); if(val<1) return; |