Fixing Loopcut smooth to actually cut smooth
This commit is contained in:
2005-12-08 21:35:08 +00:00
parent ae8c2963e5
commit 13d638c8b8

View File

@@ -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);
}