diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-24 22:22:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-24 22:22:59 +0400 |
commit | f8c37b083c50ac2c8dd697bcb44401b3a841a170 (patch) | |
tree | 72fa28ac0496581e02bd30982261d623bf472d4d | |
parent | afb200f217ddbd0661ffe594ad41f5df6ff644f4 (diff) |
remove own optimization in scanfill, in rare cases it caused problems, reported as [#35861]
-rw-r--r-- | source/blender/blenlib/intern/scanfill.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/scanfill.c b/source/blender/blenlib/intern/scanfill.c index 44a9ffa244d..b6a86b86188 100644 --- a/source/blender/blenlib/intern/scanfill.c +++ b/source/blender/blenlib/intern/scanfill.c @@ -721,11 +721,8 @@ static int scanfill(ScanFillContext *sf_ctx, PolyFill *pf, const int flag) /* we continue searching and pick the one with sharpest corner */ if (best_sc == NULL) { + /* even without holes we need to keep checking [#35861] */ best_sc = sc1; - /* only need to continue checking with holes */ - if ((flag & BLI_SCANFILL_CALC_HOLES) == 0) { - break; - } } else { float angle; |