diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-23 18:07:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-23 18:07:22 +0400 |
commit | a55857c653b498dc8a366873f5206e8fc1ce9c2d (patch) | |
tree | 36878ed86c61b241a76aca9768b45fb65251b2cb /source/blender/editors/mesh/editmesh_tools.c | |
parent | 620d674b85d42e75505606246b7db6866900d589 (diff) |
new mesh bisect had a problem not selecting faces with fill option in face mode.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_tools.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index a6202b01ea4..978fac2604c 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -4493,6 +4493,8 @@ static int mesh_bisect_exec(bContext *C, wmOperator *op) BM_ELEM_SELECT, plane_co, plane_no, thresh, clear_inner, clear_outer); BMO_op_exec(bm, &bmop); + EDBM_flag_disable_all(em, BM_ELEM_SELECT); + if (use_fill) { float normal_fill[3]; BMOperator bmop_fill; @@ -4515,11 +4517,13 @@ static int mesh_bisect_exec(bContext *C, wmOperator *op) "face_attribute_fill faces=%S use_normals=%b use_data=%b", &bmop_fill, "geom.out", false, true); BMO_op_exec(bm, &bmop_attr); + + BMO_slot_buffer_hflag_enable(bm, bmop_fill.slots_out, "geom.out", BM_FACE, BM_ELEM_SELECT, true); + BMO_op_finish(bm, &bmop_attr); BMO_op_finish(bm, &bmop_fill); } - EDBM_flag_disable_all(em, BM_ELEM_SELECT); BMO_slot_buffer_hflag_enable(bm, bmop.slots_out, "geom_cut.out", BM_VERT | BM_EDGE, BM_ELEM_SELECT, true); if (!EDBM_op_finish(em, &bmop, op, true)) { |