fixes #9. dup point detection was broken

This commit is contained in:
Stewart Allen 2017-12-06 15:07:09 -05:00
commit e3ad319292

View file

@ -305,7 +305,7 @@ var gs_kiri_print = exports;
*/
function addOutput(array, point, emit, speed, tool) {
// drop duplicates (usually intruced by bisections)
if (lastPoint && point.x == lastPoint.x && point.y == lastPoint.y && lastEmit == emit) {
if (lastPoint && point.x == lastPoint.x && point.y == lastPoint.y && point.z == lastPoint.z && lastEmit == emit) {
return;
}
lastPoint = point;