diff options
author | Ton Roosendaal <ton@blender.org> | 2010-12-04 19:02:04 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-12-04 19:02:04 +0300 |
commit | b3eea07e8472eb68c43110c44982f82900a41b20 (patch) | |
tree | 8a1ffe67ced13cb585169ad8bb56c930fc60758c /source/blender/editors/mesh | |
parent | cadd08b16f746fff288b7746553d464a87058cc9 (diff) |
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!
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_add.c | 5 |
1 files changed, 4 insertions, 1 deletions
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<tot; a++) { |