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:
authorMatt Ebb <matt@mke3.net>2004-01-07 10:30:29 +0300
committerMatt Ebb <matt@mke3.net>2004-01-07 10:30:29 +0300
commit38e88310b04736abfdc24150cd880204472328ed (patch)
tree63a95396581ab72c8a35b46de9fd754ddf9c30c2 /source/blender
parent3e17164a6c2e09cee926e1212ef2028eca963953 (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/blender')
-rw-r--r--source/blender/src/editmesh.c7
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;