mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Mark all segments as visited when processing intersection and subtraction, not just overlaps.
This commit is contained in:
parent
af5a5b5f2d
commit
8da82fed19
1 changed files with 3 additions and 3 deletions
|
@ -610,9 +610,9 @@ PathItem.inject(new function() {
|
||||||
// segment. See isValid()/getWinding() for explanations.
|
// segment. See isValid()/getWinding() for explanations.
|
||||||
// We are at a crossing and the other segment is part of
|
// We are at a crossing and the other segment is part of
|
||||||
// the boolean result, switch over.
|
// the boolean result, switch over.
|
||||||
// We need to mark overlap segments as visited when
|
// We need to mark segments as visited when processing
|
||||||
// processing intersection and subtraction.
|
// intersection and subtraction.
|
||||||
if (operator && inter._overlap
|
if (operator
|
||||||
&& (operator.intersect || operator.subtract)) {
|
&& (operator.intersect || operator.subtract)) {
|
||||||
seg._visited = true;
|
seg._visited = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue