diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-03-16 18:18:32 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-03-16 18:18:32 +0400 |
commit | a7b83837db63c799c05b257c67db9d980a1650eb (patch) | |
tree | fad78df7761ba852b62d290e1c2b2413b86b9290 /source/blender/bmesh/intern/bmesh_polygon.h | |
parent | 5bea78301dcb0af8b6298abc5554643364c667dc (diff) |
fix for crash when using BM_face_calc_tessellation(), its not ensured that all tris will be filled in.
(effected knife project and laplacian smooth).
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_polygon.h')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_polygon.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/bmesh/intern/bmesh_polygon.h b/source/blender/bmesh/intern/bmesh_polygon.h index ccb85449808..c439a41f672 100644 --- a/source/blender/bmesh/intern/bmesh_polygon.h +++ b/source/blender/bmesh/intern/bmesh_polygon.h @@ -27,7 +27,12 @@ * \ingroup bmesh */ -void BM_face_calc_tessellation(BMFace *f, BMLoop **r_loops, int (*r_index)[3]); +int BM_face_calc_tessellation(BMFace *f, BMLoop **r_loops, int (*r_index)[3]) +#ifdef __GNUC__ + __attribute__((warn_unused_result)) + __attribute__((nonnull)) +#endif +; float BM_face_calc_area(BMFace *f); float BM_face_calc_perimeter(BMFace *f); void BM_face_calc_center_bounds(BMFace *f, float center[3]); |