Fixed problem with 'last' point beeing doubled
Signed-off-by: merspieler <merspieler@airmail.cc>
This commit is contained in:
parent
9a3ac4e9c9
commit
a5f99de254
1 changed files with 3 additions and 1 deletions
|
@ -160,7 +160,9 @@ var _calculate_bezier = func() {
|
||||||
pointList[j][k].apply_course_distance(course, dist * i);
|
pointList[j][k].apply_course_distance(course, dist * i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
route.add(geo.Coord.new(pointList[PNumber - 1][0]));
|
if (i + step < 1) {
|
||||||
|
route.add(geo.Coord.new(pointList[PNumber - 1][0]));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue