diff options
author | Campbell Barton <campbell@blender.org> | 2022-08-12 03:37:28 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-08-12 03:37:28 +0300 |
commit | a2247c271c822ba82d7ae38030509933233cd3a5 (patch) | |
tree | f145cf67ef0992e911e19ff3a6cd7a0d105ed0ac /source/blender/editors/mesh | |
parent | 282a861e11b312621dfc9db2be7022e8d3b000c8 (diff) |
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.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |