[Bf-blender-cvs] [a2247c271c8] master: Cleanup: typo in selection check

Campbell Barton noreply at git.blender.org
Fri Aug 12 02:48:53 CEST 2022


Commit: a2247c271c822ba82d7ae38030509933233cd3a5
Author: Campbell Barton
Date:   Fri Aug 12 10:37:28 2022 +1000
Branches: master
https://developer.blender.org/rBa2247c271c822ba82d7ae38030509933233cd3a5

Cleanup: typo in selection check

In practice this is harmless as in most cases checking selected
vertices is enough, however as the intention is to check all 3 elements
it's best to do so.

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

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 c5add97fb00..7de5ad9f151 100644
--- a/source/blender/editors/mesh/editmesh_tools.c
+++ b/source/blender/editors/mesh/editmesh_tools.c
@@ -936,7 +936,7 @@ static int edbm_add_edge_face_exec(bContext *C, wmOperator *op)
     Object *obedit = objects[ob_index];
     BMEditMesh *em = BKE_editmesh_from_object(obedit);
 
-    if ((em->bm->totvertsel == 0) && (em->bm->totedgesel == 0) && (em->bm->totvertsel == 0)) {
+    if ((em->bm->totvertsel == 0) && (em->bm->totedgesel == 0) && (em->bm->totfacesel == 0)) {
       continue;
     }



More information about the Bf-blender-cvs mailing list