mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Prevent rare case where we get excluded intersections without valid curves at the start.
This commit is contained in:
parent
3d4430f8af
commit
2ca34cddac
1 changed files with 2 additions and 1 deletions
|
@ -321,7 +321,8 @@ PathItem.inject(new function() {
|
|||
if (exclude) {
|
||||
// Store excluded locations for later renormalization, in case
|
||||
// the same curve is divided to their left.
|
||||
renormalizeLocs.push(loc);
|
||||
if (renormalizeLocs)
|
||||
renormalizeLocs.push(loc);
|
||||
continue;
|
||||
} else if (include) {
|
||||
results.unshift(loc);
|
||||
|
|
Loading…
Reference in a new issue