mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-06-17 00:11:04 -04:00
Fix one new failing boolean issue.
This commit is contained in:
parent
66ff8d3a51
commit
74c1f54bb3
1 changed files with 7 additions and 5 deletions
|
@ -239,16 +239,18 @@ PathItem.inject(new function() {
|
|||
prevT;
|
||||
|
||||
for (var i = locations.length - 1; i >= 0; i--) {
|
||||
var loc = locations[i],
|
||||
curve = loc._curve,
|
||||
t = loc._parameter,
|
||||
origT = t,
|
||||
segment;
|
||||
var loc = locations[i];
|
||||
// Call include() before retrieving _curve, because it might cause a
|
||||
// change in the cached location values (see #resolveCrossings()).
|
||||
if (include) {
|
||||
if (!include(loc))
|
||||
continue;
|
||||
results.unshift(loc);
|
||||
}
|
||||
var curve = loc._curve,
|
||||
t = loc._parameter,
|
||||
origT = t,
|
||||
segment;
|
||||
if (curve !== prevCurve) {
|
||||
// This is a new curve, update noHandles setting.
|
||||
noHandles = !curve.hasHandles();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue