[Bf-blender-cvs] [5231b04] master: Fix T47443: Circle & UV Sphere aren't aligned

Campbell Barton noreply at git.blender.org
Tue Apr 12 11:46:15 CEST 2016


Commit: 5231b049d7af045646ad7772534dc6aebce20bb6
Author: Campbell Barton
Date:   Tue Apr 12 19:40:39 2016 +1000
Branches: master
https://developer.blender.org/rB5231b049d7af045646ad7772534dc6aebce20bb6

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.

===================================================================

M	source/blender/bmesh/operators/bmo_primitive.c

===================================================================

diff --git a/source/blender/bmesh/operators/bmo_primitive.c b/source/blender/bmesh/operators/bmo_primitive.c
index fcf02c4..e3be4db 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);




More information about the Bf-blender-cvs mailing list