Commit: e97ab28a03f81a71ffef83333959af9839f61682
Author: Campbell Barton
Date:   Fri Apr 27 21:52:08 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBe97ab28a03f81a71ffef83333959af9839f61682

Edit Mesh: skip unselected meshes w/ fill holes

===================================================================

M       source/blender/editors/mesh/editmesh_tools.c

===================================================================

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;
                }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to