Don't create step movements for vertically diagonal moves.

This commit is contained in:
Markus Lampert
2017-08-17 12:47:36 -07:00
committed by wmayer
parent 7fbc80c11e
commit 42e9cbcc4a

View File

@@ -230,10 +230,9 @@ def move(command):
txt += "," + format(GetValue(command.Parameters["Y"]), '.4f')
txt += "\n"
elif axis == "XZ":
txt += pref + "X"
txt += pref + "3"
txt += "," + format(GetValue(command.Parameters["X"]), '.4f')
txt += "\n"
txt += pref + "Z"
txt += ","
txt += "," + format(GetValue(command.Parameters["Z"]), '.4f')
txt += "\n"
elif axis == "XYZ":
@@ -243,10 +242,9 @@ def move(command):
txt += "," + format(GetValue(command.Parameters["Z"]), '.4f')
txt += "\n"
elif axis == "YZ":
txt += pref + "Y"
txt += pref + "3"
txt += ","
txt += "," + format(GetValue(command.Parameters["Y"]), '.4f')
txt += "\n"
txt += pref + "Z"
txt += "," + format(GetValue(command.Parameters["Z"]), '.4f')
txt += "\n"
elif axis == "":