diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-27 04:48:18 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-27 04:48:18 +0400 |
commit | bec7c8c7aa951dd98ee4a7c14a434a4d0ac02688 (patch) | |
tree | f0e2f66ea384572440f87f25bf5d16007bb3b384 /source/blender/bmesh/intern/bmesh_polygon.c | |
parent | 66671f1aaecdbab932cbdff8c5e527083f5d2bc1 (diff) |
BMesh: optimize BM_face_legal_splits for concave faces
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_polygon.c')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_polygon.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/bmesh/intern/bmesh_polygon.c b/source/blender/bmesh/intern/bmesh_polygon.c index 3093cba663f..867c54ad4b8 100644 --- a/source/blender/bmesh/intern/bmesh_polygon.c +++ b/source/blender/bmesh/intern/bmesh_polygon.c @@ -1064,7 +1064,9 @@ void BM_face_legal_splits(BMFace *f, BMLoop *(*loops)[2], int len) } /* first test for completely convex face */ - + if (is_poly_convex_v2((const float (*)[2])projverts, f->len)) { + return; + } for (i = 0, l = BM_FACE_FIRST_LOOP(f); i < f->len; i++, l = l->next) { out[0] = max_ff(out[0], projverts[i][0]); |