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 authored and Gina Häußge committed 2016-07-05 13:15:55 +02:00
1 parent 93b247b088
commit ad3ae405f6
1 file changed
+1 -1
+1 -1
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