From bd1d80d0cf9c8aa856b37a91750c94a0048528f5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 16 Mar 2019 11:38:55 +1100 Subject: Cleanup: use return args last --- source/blender/editors/mesh/editface.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/mesh/editface.c') diff --git a/source/blender/editors/mesh/editface.c b/source/blender/editors/mesh/editface.c index e226985300c..12a96d41711 100644 --- a/source/blender/editors/mesh/editface.c +++ b/source/blender/editors/mesh/editface.c @@ -272,7 +272,7 @@ void paintface_select_linked(bContext *C, Object *ob, const int mval[2], const b if (me == NULL || me->totpoly == 0) return; if (mval) { - if (!ED_mesh_pick_face(C, ob, mval, &index, ED_MESH_PICK_DEFAULT_FACE_DIST)) { + if (!ED_mesh_pick_face(C, ob, mval, ED_MESH_PICK_DEFAULT_FACE_DIST, &index)) { return; } } @@ -374,11 +374,13 @@ bool paintface_mouse_select(struct bContext *C, Object *ob, const int mval[2], b /* Get the face under the cursor */ me = BKE_mesh_from_object(ob); - if (!ED_mesh_pick_face(C, ob, mval, &index, ED_MESH_PICK_DEFAULT_FACE_DIST)) + if (!ED_mesh_pick_face(C, ob, mval, ED_MESH_PICK_DEFAULT_FACE_DIST, &index)) { return false; + } - if (index >= me->totpoly) + if (index >= me->totpoly) { return false; + } mpoly_sel = me->mpoly + index; if (mpoly_sel->flag & ME_HIDE) return false; -- cgit v1.2.3