From 4d8fce856867f7755e91de96f3cc2030147e2100 Mon Sep 17 00:00:00 2001 From: Martin Poirier Date: Tue, 23 Dec 2003 19:03:30 +0000 Subject: Fixed bevel width preview drawing which draws the correctly with higher recursion level (it was incorrect for anything higher than 2). Also commented out a couple of unused variables that were shouting warnings (and we all love the lack of warning and the couple of extra free bytes) :) --- source/blender/src/editmesh.c | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) (limited to 'source') diff --git a/source/blender/src/editmesh.c b/source/blender/src/editmesh.c index 226c6f96609..43386aca853 100644 --- a/source/blender/src/editmesh.c +++ b/source/blender/src/editmesh.c @@ -8038,12 +8038,12 @@ void bevel_mesh(float bsize, int allfaces) /* 2 = edge quad */ /* 3 = fill polygon (vertex clusters) */ - EditVlak *evl, *nextvl, *example; + EditVlak *evl, *example; //, *nextvl; EditEdge *eed, *eed2; - EditVert *neweve[1024], *eve, *eve2, *eve3, *eve4, *v1, *v2, *v3, *v4; + EditVert *neweve[1024], *eve, *eve2, *eve3, *v1, *v2, *v3, *v4; //, *eve4; float con1, con2, con3; - short found4, search; - float f1, f2, f3, f4; + //short found4, search; + //float f1, f2, f3, f4; float cent[3], min[3], max[3]; int a, b, c; float limit= 0.001; @@ -8437,10 +8437,9 @@ void bevel_mesh_recurs(float bsize, short recurs, int allfaces) void bevel_menu() { - EditVlak *evl; char Finished = 0, Canceled = 0, str[100]; - short mval[2], oval[2], curval[2], event = 0, recurs = 1; - float vec[3], d, drawd, centre[3]; + short mval[2], oval[2], curval[2], event = 0, recurs = 1, nr; + float vec[3], d, drawd, centre[3], fac = 1; getmouseco_areawin(mval); oval[0] = mval[0]; oval[1] = mval[1]; @@ -8453,10 +8452,12 @@ void bevel_menu() if(button(&recurs, 1, 4, "Recurs:")==0) return; + for (nr=0; nr