diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-23 09:32:43 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-23 09:32:43 +0400 |
commit | 6f4b79d5af8245ad88afbad43a813b6bf238c310 (patch) | |
tree | eb18b9c47e9862cb1ba59ddbfeea0582ac5281db /source/blender/bmesh/operators/bmo_bisect_plane.c | |
parent | 77fa1aaab58c3adfad9a508cea6811cea6cd10b6 (diff) |
edits to new symmetrize tool
- snap axis-aligned verts to the center.
- expose the threshold for detecting if a vertex is on the axis.
Diffstat (limited to 'source/blender/bmesh/operators/bmo_bisect_plane.c')
-rw-r--r-- | source/blender/bmesh/operators/bmo_bisect_plane.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/bmesh/operators/bmo_bisect_plane.c b/source/blender/bmesh/operators/bmo_bisect_plane.c index d651f3974e0..575e6888df0 100644 --- a/source/blender/bmesh/operators/bmo_bisect_plane.c +++ b/source/blender/bmesh/operators/bmo_bisect_plane.c @@ -40,6 +40,7 @@ void bmo_bisect_plane_exec(BMesh *bm, BMOperator *op) { const float dist = BMO_slot_float_get(op->slots_in, "dist"); + const bool use_snap_center = BMO_slot_bool_get(op->slots_in, "use_snap_center"); const bool clear_outer = BMO_slot_bool_get(op->slots_in, "clear_outer"); const bool clear_inner = BMO_slot_bool_get(op->slots_in, "clear_inner"); @@ -64,7 +65,7 @@ void bmo_bisect_plane_exec(BMesh *bm, BMOperator *op) BMO_slot_buffer_flag_enable(bm, op->slots_in, "geom", BM_ALL_NOLOOP, ELE_INPUT); - BM_mesh_bisect_plane(bm, plane, true, + BM_mesh_bisect_plane(bm, plane, use_snap_center, true, ELE_NEW, dist); |