More GCode export fixes

More GCode export tests
This commit is contained in:
Lars Brubaker 2018-12-20 16:00:27 -08:00
parent 6f4efc84ce
commit c789a3fe0a
8 changed files with 193 additions and 28 deletions

View file

@ -68,7 +68,10 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
PrinterMove moveToSend = currentMove;
moveToSend.feedRate *= FeedRateRatio;
lineToSend = CreateMovementLine(moveToSend, this.lastDestination);
if (moveToSend.HaveAnyPosition)
{
lineToSend = CreateMovementLine(moveToSend, this.lastDestination);
}
this.lastDestination = currentMove;
return lineToSend;
}