IRC report:

Adding mesh primitive circle/cone/tube now has first vertex
on top. Looks much nicer on low vertex totals.
Fix provided by Mario G Kishalmi, thanks!
This commit is contained in:
Ton Roosendaal
2010-12-04 16:02:04 +00:00
parent cadd08b16f
commit b3eea07e84

View File

@@ -1201,7 +1201,10 @@ static void make_prim(Object *obedit, int type, float mat[4][4], int tot, int se
else if(ext==0)
depth= 0.0f;
/* vertices */
/* first vertex at 0° for circular objects */
if( ELEM3(type, PRIM_CIRCLE,PRIM_CYLINDER,PRIM_CONE) )
phi = 0.0f;
vtop= vdown= v1= v2= 0;
for(b=0; b<=ext; b++) {
for(a=0; a<tot; a++) {