mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Dirty temporary fix for new median winding code that struggles with circles.
This commit is contained in:
parent
5da0ae5c3c
commit
80e1a54171
1 changed files with 2 additions and 1 deletions
|
@ -111,7 +111,8 @@ PathItem.inject(new function() {
|
|||
// (amortised) time.
|
||||
for (var j = 0; j < 3; j++) {
|
||||
// Try the points at 1/4, 2/4 and 3/4 of the total length:
|
||||
var length = totalLength * (j + 1) / 4;
|
||||
var length = totalLength * (j + 1) /
|
||||
/*#=*/(4 - 2 * Numerical.TOLERANCE);
|
||||
for (k = 0, m = chain.length; k < m; k++) {
|
||||
var entry = chain[k];
|
||||
if (length <= entry.length) {
|
||||
|
|
Loading…
Reference in a new issue