diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-11-13 20:10:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-11-13 20:33:35 +0300 |
commit | fc9fa07c0e177bda4c5ae2233616081ed48f2c8c (patch) | |
tree | 09daf8254b0ed0035032f841483a462ee6ec2c9a /source/blender/bmesh/operators/bmo_hull.c | |
parent | 1b1d6ce131c93b8a770c873460dce429796849a3 (diff) |
BMesh: BM_face_exists no longer uses return arg
Just return the face or NULL, like BM_edge_exists(),
Also for BM_face_exists_overlap & bm_face_exists_tri_from_loop_vert.
No functional changes.
Old code did some partial overlap checks where this made some sense,
but it's since been removed.
Diffstat (limited to 'source/blender/bmesh/operators/bmo_hull.c')
-rw-r--r-- | source/blender/bmesh/operators/bmo_hull.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/bmesh/operators/bmo_hull.c b/source/blender/bmesh/operators/bmo_hull.c index 9c41e4f2115..81ec2860cf7 100644 --- a/source/blender/bmesh/operators/bmo_hull.c +++ b/source/blender/bmesh/operators/bmo_hull.c @@ -119,7 +119,8 @@ static void hull_output_triangles(BMesh *bm, GSet *hull_triangles) }; BMFace *f, *example = NULL; - if (BM_face_exists(t->v, 3, &f)) { + f = BM_face_exists(t->v, 3); + if (f != NULL) { /* If the operator is run with "use_existing_faces" * disabled, but an output face in the hull is the * same as a face in the existing mesh, it should not |