diff options
author | Johnny Matthews <johnny.matthews@gmail.com> | 2005-08-08 19:59:05 +0400 |
---|---|---|
committer | Johnny Matthews <johnny.matthews@gmail.com> | 2005-08-08 19:59:05 +0400 |
commit | 7f98c960b530782fd0a6d34a222a8cd8d80ff35b (patch) | |
tree | 36d980529a15ef9cfddfc6c8c078c20dbf8cb0d9 /source/blender/src/editmesh_loop.c | |
parent | ed80fde36b2357f8274671a930cecb1fe8449d98 (diff) |
Added extra Select Type option for esubdivide and put them in defines to get rid of magic numbers
SUBDIV_SELECT_ORIG - Retain selection to look like original selection
SUBDIV_SELECT_INNER - New selection is all the new inner edges
SUBDIV_SELECT_INNER_SEL - New selection is all the new inner edges except where only 1 edges was selected on a face
Loopcut now uses SUBDIV_SELECT_INNER_SEL for better interaction with edgeslide
Diffstat (limited to 'source/blender/src/editmesh_loop.c')
-rw-r--r-- | source/blender/src/editmesh_loop.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/src/editmesh_loop.c b/source/blender/src/editmesh_loop.c index 8d6a2f66e2d..bc50ebdce05 100644 --- a/source/blender/src/editmesh_loop.c +++ b/source/blender/src/editmesh_loop.c @@ -376,9 +376,9 @@ void CutEdgeloop(int numcuts) /* now cut the loops */ if(smooth){ - esubdivideflag(SELECT,0,B_SMOOTH,numcuts,1); + esubdivideflag(SELECT,0,B_SMOOTH,numcuts,SUBDIV_SELECT_INNER_SEL); } else { - esubdivideflag(SELECT,0,0,numcuts,1); + esubdivideflag(SELECT,0,0,numcuts,SUBDIV_SELECT_INNER_SEL); } /* if this was a single cut, enter edgeslide mode */ if(numcuts == 1){ @@ -664,9 +664,9 @@ void KnifeSubdivide(char mode) eed= eed->next; } - if (mode==KNIFE_EXACT) esubdivideflag(1, 0, B_KNIFE|B_PERCENTSUBD,1,0); - else if (mode==KNIFE_MIDPOINT) esubdivideflag(1, 0, B_KNIFE,1,0); - else if (mode==KNIFE_MULTICUT) esubdivideflag(1, 0, B_KNIFE,numcuts,0); + if (mode==KNIFE_EXACT) esubdivideflag(1, 0, B_KNIFE|B_PERCENTSUBD,1,SUBDIV_SELECT_ORIG); + else if (mode==KNIFE_MIDPOINT) esubdivideflag(1, 0, B_KNIFE,1,SUBDIV_SELECT_ORIG); + else if (mode==KNIFE_MULTICUT) esubdivideflag(1, 0, B_KNIFE,numcuts,SUBDIV_SELECT_ORIG); eed=em->edges.first; while(eed){ |