IRC report:
authorTon Roosendaal <ton@blender.org>
Sat, 4 Dec 2010 16:02:04 +0000 (16:02 +0000)
committerTon Roosendaal <ton@blender.org>
Sat, 4 Dec 2010 16:02:04 +0000 (16:02 +0000)
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

index da3f7e3f916d0b6f8c810c5fe62728abc5d6a3aa..e15e8e05f592f8e10ecebc7bde16d8e5295645fe 100644 (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++) {