mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -05:00
Address minor omission in previous commit.
This commit is contained in:
parent
a5a0e90bee
commit
a5d04ef97c
2 changed files with 4 additions and 4 deletions
|
@ -1573,9 +1573,9 @@ var Path = PathItem.extend(/** @lends Path# */{
|
||||||
values2.push(v2);
|
values2.push(v2);
|
||||||
var overlaps = Curve.getOverlaps(v1, v2);
|
var overlaps = Curve.getOverlaps(v1, v2);
|
||||||
if (overlaps) {
|
if (overlaps) {
|
||||||
// If the overlap doesn't start at the beginning of v2, then
|
// If the overlap doesn't start at the beginning of v2, then it
|
||||||
// it can only be the a partial overlap with curves2[0], and
|
// can only be a partial overlap with curves2[0], and the start
|
||||||
// the start is at curves2[-1]:
|
// will be at curves2[length2 - 1]:
|
||||||
pos2 = !i && overlaps[0][0] > 0 ? length2 - 1 : i;
|
pos2 = !i && overlaps[0][0] > 0 ? length2 - 1 : i;
|
||||||
// Set end2 to the start of the first overlap on curves2, so
|
// Set end2 to the start of the first overlap on curves2, so
|
||||||
// connection checks further down can work.
|
// connection checks further down can work.
|
||||||
|
|
|
@ -778,7 +778,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{
|
||||||
var path1 = paths1[i1];
|
var path1 = paths1[i1];
|
||||||
ok = false;
|
ok = false;
|
||||||
for (var i2 = length2 - 1; i2 >= 0 && !ok; i2--) {
|
for (var i2 = length2 - 1; i2 >= 0 && !ok; i2--) {
|
||||||
if (Path.compare(path1, paths2[i2])) {
|
if (path1.compare(paths2[i2])) {
|
||||||
if (!matched[i2]) {
|
if (!matched[i2]) {
|
||||||
matched[i2] = true;
|
matched[i2] = true;
|
||||||
count++;
|
count++;
|
||||||
|
|
Loading…
Reference in a new issue