From 42e9cbcc4a1d4181de1b512a147590dfd9c06f85 Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Thu, 17 Aug 2017 12:47:36 -0700 Subject: [PATCH] Don't create step movements for vertically diagonal moves. --- src/Mod/Path/PathScripts/post/opensbp_post.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Mod/Path/PathScripts/post/opensbp_post.py b/src/Mod/Path/PathScripts/post/opensbp_post.py index fd8c70d483..a1a8382275 100644 --- a/src/Mod/Path/PathScripts/post/opensbp_post.py +++ b/src/Mod/Path/PathScripts/post/opensbp_post.py @@ -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 == "":