mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
No need to check for overlap when determining value for unadjusted
Since setting only changes behavior if there actually is an overlap.
This commit is contained in:
parent
05bc6afdbb
commit
90b4cf7292
1 changed files with 4 additions and 7 deletions
|
@ -577,10 +577,8 @@ PathItem.inject(new function() {
|
|||
+ ', seg wi:' + seg._winding
|
||||
+ ', next wi:' + nextSeg._winding
|
||||
+ ', seg op:' + isValid(seg, true)
|
||||
+ ', next op:' + (isValid(nextSeg,
|
||||
!strict && inter._overlap)
|
||||
|| nextInter && isValid(nextInter._segment,
|
||||
!strict && nextInter._overlap))
|
||||
+ ', next op:' + (isValid(nextSeg, !strict) || nextInter
|
||||
&& isValid(nextInter._segment, !strict))
|
||||
+ ', seg ov: ' + (seg._intersection
|
||||
&& seg._intersection._overlap)
|
||||
+ ', next ov: ' + (nextSeg._intersection
|
||||
|
@ -609,9 +607,8 @@ PathItem.inject(new function() {
|
|||
|| (!strict || isValid(seg, true))
|
||||
// Even if next segment is not valid, its to which
|
||||
// we may switch might be, so count that too!
|
||||
&& (isValid(nextSeg, !strict && inter._overlap)
|
||||
|| nextInter && isValid(nextInter._segment,
|
||||
!strict && nextInter._overlap))
|
||||
&& (isValid(nextSeg, !strict) || nextInter
|
||||
&& isValid(nextInter._segment, !strict))
|
||||
)
|
||||
? inter
|
||||
// If it's no match, check the next linked intersection first,
|
||||
|
|
Loading…
Reference in a new issue