mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-07 18:24:00 -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;
|
prevT;
|
||||||
|
|
||||||
for (var i = locations.length - 1; i >= 0; i--) {
|
for (var i = locations.length - 1; i >= 0; i--) {
|
||||||
var loc = locations[i],
|
var loc = locations[i];
|
||||||
curve = loc._curve,
|
// Call include() before retrieving _curve, because it might cause a
|
||||||
t = loc._parameter,
|
// change in the cached location values (see #resolveCrossings()).
|
||||||
origT = t,
|
|
||||||
segment;
|
|
||||||
if (include) {
|
if (include) {
|
||||||
if (!include(loc))
|
if (!include(loc))
|
||||||
continue;
|
continue;
|
||||||
results.unshift(loc);
|
results.unshift(loc);
|
||||||
}
|
}
|
||||||
|
var curve = loc._curve,
|
||||||
|
t = loc._parameter,
|
||||||
|
origT = t,
|
||||||
|
segment;
|
||||||
if (curve !== prevCurve) {
|
if (curve !== prevCurve) {
|
||||||
// This is a new curve, update noHandles setting.
|
// This is a new curve, update noHandles setting.
|
||||||
noHandles = !curve.hasHandles();
|
noHandles = !curve.hasHandles();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue