mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Fix filtering of duplace points in path fitting code.
This commit is contained in:
parent
611415fea7
commit
065777291e
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ var PathFitter = Base.extend({
|
||||||
for (var i = 0, l = segments.length; i < l; i++) {
|
for (var i = 0, l = segments.length; i < l; i++) {
|
||||||
var point = segments[i].point.clone();
|
var point = segments[i].point.clone();
|
||||||
if (!prev || !prev.equals(point)) {
|
if (!prev || !prev.equals(point)) {
|
||||||
this.points[i] = point;
|
this.points.push(point);
|
||||||
prev = point;
|
prev = point;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue