From b3eea07e8472eb68c43110c44982f82900a41b20 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sat, 4 Dec 2010 16:02:04 +0000 Subject: [PATCH] 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! --- source/blender/editors/mesh/editmesh_add.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/mesh/editmesh_add.c b/source/blender/editors/mesh/editmesh_add.c index da3f7e3f916..e15e8e05f59 100644 --- a/source/blender/editors/mesh/editmesh_add.c +++ b/source/blender/editors/mesh/editmesh_add.c @@ -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