diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-06-16 14:13:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-06-16 14:13:22 +0300 |
commit | b986f955e96578e691e3561142b571609957ade0 (patch) | |
tree | a4b3b888ae7f41a18fbd21d9210e1c1d7be9d2a8 /source/blender/blenlib/intern/polyfill2d.c | |
parent | 173c1133a82d98bf003d0e12065dfae3d0fa8a30 (diff) |
Disable assert for polyfill
Would fail on some zero-area ngons.
Diffstat (limited to 'source/blender/blenlib/intern/polyfill2d.c')
-rw-r--r-- | source/blender/blenlib/intern/polyfill2d.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/polyfill2d.c b/source/blender/blenlib/intern/polyfill2d.c index 629bed10191..df6caa4b65a 100644 --- a/source/blender/blenlib/intern/polyfill2d.c +++ b/source/blender/blenlib/intern/polyfill2d.c @@ -61,6 +61,9 @@ # define USE_KDTREE #endif +/* disable in production, it can fail on near zero area ngons */ +// #define USE_STRICT_ASSERT + // #define DEBUG_TIME #ifdef DEBUG_TIME # include "PIL_time_utildefines.h" @@ -797,6 +800,7 @@ static void polyfill_prepare( } else { /* chech we're passing in correcty args */ +#ifdef USE_STRICT_ASSERT #ifndef NDEBUG if (coords_sign == 1) { BLI_assert(cross_poly_v2(coords, coords_tot) >= 0.0f); @@ -805,6 +809,7 @@ static void polyfill_prepare( BLI_assert(cross_poly_v2(coords, coords_tot) <= 0.0f); } #endif +#endif } if (coords_sign == 1) { |