diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-18 09:52:18 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-18 09:52:18 +0400 |
commit | 6389301eb573625abefc20f93fb83efa64d2600d (patch) | |
tree | 4cd354a29b4eb29dbae0075499387685bf67c4fb /source/blender/blenlib/intern/scanfill.c | |
parent | df27c315ce8eb72ee7d7d5d8aa3deb1645e88866 (diff) |
fix for own error in recent scanfill updates, scanfill can hang if run on a polygon with no area.
Diffstat (limited to 'source/blender/blenlib/intern/scanfill.c')
-rw-r--r-- | source/blender/blenlib/intern/scanfill.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/scanfill.c b/source/blender/blenlib/intern/scanfill.c index 4878ad628ef..a57c2eb1ad3 100644 --- a/source/blender/blenlib/intern/scanfill.c +++ b/source/blender/blenlib/intern/scanfill.c @@ -882,7 +882,7 @@ int BLI_edgefill_ex(ScanFillContext *sf_ctx, const short do_quad_tri_speedup, co } if (UNLIKELY(normalize_v3(n) == 0.0f)) { - n[2] = 1.0f; /* other axis set to 0.0 */ + return 0; } axis_dominant_v3(&co_x, &co_y, n); |