diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-23 07:43:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-23 07:43:02 +0400 |
commit | b51590d55df4b013a0becf9977eddb33206276ba (patch) | |
tree | 03decdf489f9e7acf1ccfd2be3b9aab709b5cba3 /source/blender/bmesh/operators/bmo_primitive.c | |
parent | 4c4389f6a42ebfe0140de8d1892d9990aa592980 (diff) |
code cleanup: bmesh subdivide code - BM_mesh_esubdivideflag() & "esubd" bmesh operator was passing a flag about in a fairly confusing way.
since we will eventually have python bmesh operator access better expose this as multiple booleans.
remove remaining editbutflag's
Diffstat (limited to 'source/blender/bmesh/operators/bmo_primitive.c')
-rw-r--r-- | source/blender/bmesh/operators/bmo_primitive.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/bmesh/operators/bmo_primitive.c b/source/blender/bmesh/operators/bmo_primitive.c index e526e2eaca0..fc0e34cf2f6 100644 --- a/source/blender/bmesh/operators/bmo_primitive.c +++ b/source/blender/bmesh/operators/bmo_primitive.c @@ -428,8 +428,13 @@ void bmo_create_icosphere_exec(BMesh *bm, BMOperator *op) BMOperator bmop; BMO_op_initf(bm, &bmop, - "esubd edges=%fe smooth=%f numcuts=%i gridfill=%b beauty=%i", - EDGE_MARK, dia, (1 << (subdiv-1)) - 1, TRUE, B_SPHERE); + "esubd edges=%fe " + "smooth=%f " + "numcuts=%i " + "use_gridfill=%b use_sphere=%b", + EDGE_MARK, dia, (1 << (subdiv-1)) - 1, + TRUE, TRUE); + BMO_op_exec(bm, &bmop); BMO_slot_buffer_flag_enable(bm, &bmop, "geomout", BM_VERT, VERT_MARK); BMO_slot_buffer_flag_enable(bm, &bmop, "geomout", BM_EDGE, EDGE_MARK); |