diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-16 03:38:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-16 03:45:22 +0300 |
commit | bd1d80d0cf9c8aa856b37a91750c94a0048528f5 (patch) | |
tree | b300e3a743191eec57439698199aebf10c8f2ff5 /source/blender/editors/mesh/editface.c | |
parent | 3600bb79d05d9a115ca036f1dcb864205ef3c0ce (diff) |
Cleanup: use return args last
Diffstat (limited to 'source/blender/editors/mesh/editface.c')
-rw-r--r-- | source/blender/editors/mesh/editface.c | 8 |
1 files changed, 5 insertions, 3 deletions
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; |