diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-04-12 12:40:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-04-12 12:47:29 +0300 |
commit | 5231b049d7af045646ad7772534dc6aebce20bb6 (patch) | |
tree | c65f798aafcb673f1de624453bfc4e26f1306cf0 /source/blender/bmesh/operators | |
parent | dc7d6643e1bd2d69be591346af3eb69fb8c06ff1 (diff) |
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.
Diffstat (limited to 'source/blender/bmesh/operators')
-rw-r--r-- | source/blender/bmesh/operators/bmo_primitive.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/bmesh/operators/bmo_primitive.c b/source/blender/bmesh/operators/bmo_primitive.c index fcf02c4bc3f..e3be4db804b 100644 --- a/source/blender/bmesh/operators/bmo_primitive.c +++ b/source/blender/bmesh/operators/bmo_primitive.c @@ -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); |