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:
authorGeoffrey Bantle <hairbat@yahoo.com>2006-09-19 04:08:09 +0400
committerGeoffrey Bantle <hairbat@yahoo.com>2006-09-19 04:08:09 +0400
commite7874b3ff0d5cb562cafac60295eec5a108e06ff (patch)
tree271c073304a8c69df6388736f30e662f8d94a8ad /source/blender/src/editmesh_tools.c
parentab2c57a29d3c4b6f61e2a342fc801959eaa54768 (diff)
->Knife Midpoint and Vertex Cutting
Cutting through vertices and vertex snap was only supported in 'knife exact' mode. Now works for 'Knife Midpoint' as well. (Multicut and vertex cutting would require N-Gons)
Diffstat (limited to 'source/blender/src/editmesh_tools.c')
-rw-r--r--source/blender/src/editmesh_tools.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/src/editmesh_tools.c b/source/blender/src/editmesh_tools.c
index f8e3f9aafa6..090323fff83 100644
--- a/source/blender/src/editmesh_tools.c
+++ b/source/blender/src/editmesh_tools.c
@@ -2768,7 +2768,7 @@ void esubdivideflag(int flag, float rad, int beauty, int numcuts, int seltype)
if(facetype == 4) {
switch(edgecount) {
case 0:
- if(beauty & B_KNIFE && beauty & B_PERCENTSUBD){
+ if(beauty & B_KNIFE && numcuts == 1){
/*Test for when knifing through two opposite verts but no edges*/
touchcount = 0;
if(ef->v1->f1) touchcount++;
@@ -2789,8 +2789,7 @@ void esubdivideflag(int flag, float rad, int beauty, int numcuts, int seltype)
break;
case 1:
- /*this whole damn thing is nasty. Rewrite it*/
- if(beauty & B_KNIFE && beauty & B_PERCENTSUBD){
+ if(beauty & B_KNIFE && numcuts == 1){
/*Test for when knifing through an edge and one vert*/
touchcount = 0;
if(ef->v1->f1) touchcount++;