diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-14 17:31:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-14 17:35:51 +0300 |
commit | 627a783784426cc39bb76be0b496a3c41786d162 (patch) | |
tree | 3571b07720a3f166ea8558be2d9368d478041c4e /source/blender/editors/mesh/editmesh_select.c | |
parent | b0f61ea6db2633cb4ad5a4d6521b0150f816578f (diff) |
Fix error in MESH_OT_edge_face_add changes
Context sensitive create also needs to check selected vertices.
Also correct indentation.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_select.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_select.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c index b58a6afb6e4..0066afca540 100644 --- a/source/blender/editors/mesh/editmesh_select.c +++ b/source/blender/editors/mesh/editmesh_select.c @@ -3220,30 +3220,30 @@ static int edbm_select_face_by_sides_exec(bContext *C, wmOperator *op) BMFace *efa; BMIter iter; - if (!extend) + if (!extend) { EDBM_flag_disable_all(em, BM_ELEM_SELECT); + } BM_ITER_MESH(efa, &iter, em->bm, BM_FACES_OF_MESH) { - bool select; switch (type) { - case 0: - select = (efa->len < numverts); - break; - case 1: - select = (efa->len == numverts); - break; - case 2: - select = (efa->len > numverts); - break; - case 3: - select = (efa->len != numverts); - break; - default: - BLI_assert(0); - select = false; - break; + case 0: + select = (efa->len < numverts); + break; + case 1: + select = (efa->len == numverts); + break; + case 2: + select = (efa->len > numverts); + break; + case 3: + select = (efa->len != numverts); + break; + default: + BLI_assert(0); + select = false; + break; } if (select) { |