Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-06-24 22:22:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-06-24 22:22:59 +0400
commitf8c37b083c50ac2c8dd697bcb44401b3a841a170 (patch)
tree72fa28ac0496581e02bd30982261d623bf472d4d /source/blender/blenlib
parentafb200f217ddbd0661ffe594ad41f5df6ff644f4 (diff)
remove own optimization in scanfill, in rare cases it caused problems, reported as [#35861]
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/scanfill.c5
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;