diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-03 02:54:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-03 02:54:00 +0400 |
commit | 99b55ef6eb7d677ead66b4166afe45688147a5b3 (patch) | |
tree | 95849d8187634b3f9bbed56c8d5640d5dcadf0ae /source/blender/blenlib/intern/scanfill.c | |
parent | ad0305281b07eccf0b905d408c5c12765095e2f7 (diff) |
add asserts when scanfilling or triangulating with zero length normal.
Diffstat (limited to 'source/blender/blenlib/intern/scanfill.c')
-rw-r--r-- | source/blender/blenlib/intern/scanfill.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/scanfill.c b/source/blender/blenlib/intern/scanfill.c index becdf5a9537..44a9ffa244d 100644 --- a/source/blender/blenlib/intern/scanfill.c +++ b/source/blender/blenlib/intern/scanfill.c @@ -869,6 +869,8 @@ int BLI_scanfill_calc_ex(ScanFillContext *sf_ctx, const int flag, const float no int totfaces = 0; /* total faces added */ float mat_2d[3][3]; + BLI_assert(!nor_proj || len_squared_v3(nor_proj) > FLT_EPSILON); + /* reset variables */ eve = sf_ctx->fillvertbase.first; a = 0; |