Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2012-03-27 14:28:06 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-03-27 14:28:06 +0400
commit1e7bcece44a1fc149add915e812cd7f9027832c8 (patch)
tree3e89886898903a27aef123f95000b4b7beced29a /source/blender/bmesh/operators/bmo_primitive.c
parent6420dc23fd208840c99359b095d33eaef6223b82 (diff)
Fix bug 30696, circular mesh objects had wrong orientation.
Behavior now matches 2.62, circle, cone, and cylinder get first vertex at 0 degrees. Also fixed range for vertex property of add-cone and add-cylinder operators, changed minumum from two to three.
Diffstat (limited to 'source/blender/bmesh/operators/bmo_primitive.c')
-rw-r--r--source/blender/bmesh/operators/bmo_primitive.c4
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 837fe46b65b..76d7e08f74a 100644
--- a/source/blender/bmesh/operators/bmo_primitive.c
+++ b/source/blender/bmesh/operators/bmo_primitive.c
@@ -506,7 +506,7 @@ void bmo_create_circle_exec(BMesh *bm, BMOperator *op)
BMO_slot_mat4_get(op, "mat", mat);
phid = 2.0f * (float)M_PI / segs;
- phi = .25f * (float)M_PI;
+ phi = 0;
if (cap_ends) {
vec[0] = vec[1] = 0.0f;
@@ -579,7 +579,7 @@ void bmo_create_cone_exec(BMesh *bm, BMOperator *op)
BMO_slot_mat4_get(op, "mat", mat);
phid = 2.0f * (float)M_PI / segs;
- phi = 0.25f * (float)M_PI;
+ phi = 0;
depth *= 0.5f;
if (cap_ends) {