diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-27 22:52:08 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-27 22:52:08 +0300 |
commit | e97ab28a03f81a71ffef83333959af9839f61682 (patch) | |
tree | 7e340db8b485bc53f0f94cc13350effb67ada050 /source | |
parent | 69b95b45f4a34337f345306cfb031a3f83a5f1dc (diff) |
Edit Mesh: skip unselected meshes w/ fill holes
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index a7e46c35271..0900009604e 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -4046,11 +4046,15 @@ static int edbm_fill_holes_exec(bContext *C, wmOperator *op) Object *obedit = objects[ob_index]; BMEditMesh *em = BKE_editmesh_from_object(obedit); + if (em->bm->totedgesel == 0) { + continue; + } + if (!EDBM_op_call_and_selectf( - em, op, - "faces.out", true, - "holes_fill edges=%he sides=%i", - BM_ELEM_SELECT, sides)) + em, op, + "faces.out", true, + "holes_fill edges=%he sides=%i", + BM_ELEM_SELECT, sides)) { continue; } |