Check for moveType == move instead of x,y,z is not None, otherwise x,y,z,e moves wouldn't be seen as extrude/retract moves

(cherry picked from commit 1b6a46c)
This commit is contained in:
Salandora 2016-07-01 18:25:52 +02:00 committed by Gina Häußge
parent 93b247b088
commit ad3ae405f6

View file

@ -151,7 +151,7 @@ class gcode(object):
else:
e = 0.0
if x is not None or y is not None or z is not None:
if moveType == "move":
diffX = oldPos[0] - pos[0]
diffY = oldPos[1] - pos[1]
totalMoveTimeMinute += math.sqrt(diffX * diffX + diffY * diffY) / feedRateXY