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:
authorJohnny Matthews <johnny.matthews@gmail.com>2005-12-09 17:49:41 +0300
committerJohnny Matthews <johnny.matthews@gmail.com>2005-12-09 17:49:41 +0300
commite4c375ef0b0cfd8104b6654fb759b2b88f241252 (patch)
tree2c45da990e4818111994e645b8ff6097595cbb00 /source/blender/src/editmesh_loop.c
parent1e589f59d01699bfa0c94bcf83bab5eca9a9a2ad (diff)
bugfix #3550
Fixing Loopcut smooth to actually cut smooth I think this will go to HEAD now...
Diffstat (limited to 'source/blender/src/editmesh_loop.c')
-rw-r--r--source/blender/src/editmesh_loop.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/editmesh_loop.c b/source/blender/src/editmesh_loop.c
index 0c6b6e10928..e3d910fef10 100644
--- a/source/blender/src/editmesh_loop.c
+++ b/source/blender/src/editmesh_loop.c
@@ -216,6 +216,7 @@ void CutEdgeloop(int numcuts)
short event,val,choosing=1,cancel=0,dist,cuthalf = 0,smooth=0;
char msg[128];
short hasHidden = 0;
+ float fac;
selectmode = G.scene->selectmode;
@@ -383,7 +384,10 @@ void CutEdgeloop(int numcuts)
/* now cut the loops */
if(smooth){
- esubdivideflag(SELECT,0,B_SMOOTH,numcuts,SUBDIV_SELECT_INNER_SEL);
+ fac= 1.0f;
+ if(fbutton(&fac, 0.0f, 5.0f, 10, 10, "Smooth:")==0) return;
+ fac= 0.292f*fac;
+ esubdivideflag(SELECT,fac,B_SMOOTH,numcuts,SUBDIV_SELECT_INNER_SEL);
} else {
esubdivideflag(SELECT,0,0,numcuts,SUBDIV_SELECT_INNER_SEL);
}