Fix check for MESH_OT_intersect
authorDalai Felinto <dfelinto@gmail.com>
Wed, 16 May 2018 10:26:26 +0000 (12:26 +0200)
committerDalai Felinto <dfelinto@gmail.com>
Wed, 16 May 2018 10:26:32 +0000 (12:26 +0200)
source/blender/editors/mesh/editmesh_intersect.c

index 44b62243a9e5ded5f0fc5ad2a69a44a7ba84907a..ade70e11e32191b072ce4252771c9816c21bb4d8 100644 (file)
@@ -192,7 +192,7 @@ static int edbm_intersect_exec(bContext *C, wmOperator *op)
                Object *obedit = objects[ob_index];
                BMEditMesh *em = BKE_editmesh_from_object(obedit);
 
-               if (em->bm->totvert == 0) {
+               if (em->bm->totfacesel == 0) {
                        continue;
                }