Fixed problem with 'last' point beeing doubled

Signed-off-by: merspieler <merspieler@airmail.cc>
This commit is contained in:
merspieler 2018-08-19 16:23:54 +02:00
parent 9a3ac4e9c9
commit a5f99de254

View file

@ -160,7 +160,9 @@ var _calculate_bezier = func() {
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]));
}
}
}