Fix T47443: Circle & UV Sphere aren't aligned

D1912 by @samb96

Change the starting point of the UV sphere so that it is aligned with the circle, cylinder, and cone primitives.
This commit is contained in:
Campbell Barton 2016-04-12 19:40:39 +10:00
parent dc7d6643e1
commit 5231b049d7
Notes: blender-bot 2023-02-14 11:25:11 +01:00
Referenced by issue #47443, Add Mesh primitive: Circle and UV Sphere are not aligned.
1 changed files with 2 additions and 2 deletions

View File

@ -376,8 +376,8 @@ void bmo_create_uvsphere_exec(BMesh *bm, BMOperator *op)
phid /= 2;
for (a = 0; a <= tot; a++) {
/* Going in this direction, then edge extruding, makes normals face outward */
vec[0] = -dia * sinf(phi);
vec[1] = 0.0;
vec[0] = 0.0;
vec[1] = dia * sinf(phi);
vec[2] = dia * cosf(phi);
eve = BM_vert_create(bm, vec, NULL, BM_CREATE_NOP);
BMO_elem_flag_enable(bm, eve, VERT_MARK);