From 0bd536353b0b6a361b7d770e303a5bb16d2bfc30 Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Sat, 16 Apr 2022 12:12:23 -0500 Subject: [PATCH] Path: Fixes #6693 - Add Z and K values to arc commands --- src/Mod/Path/PathScripts/PathDressupLeadInOut.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathDressupLeadInOut.py b/src/Mod/Path/PathScripts/PathDressupLeadInOut.py index 9b980dfdb2..65d6e1f675 100644 --- a/src/Mod/Path/PathScripts/PathDressupLeadInOut.py +++ b/src/Mod/Path/PathScripts/PathDressupLeadInOut.py @@ -414,8 +414,10 @@ class ObjectDressup: { "X": p0.x, "Y": p0.y, + "Z": p0.z, "I": offsetvector.x, "J": offsetvector.y, + "K": offsetvector.z, "F": horizFeed, }, ) # add G2/G3 move @@ -518,7 +520,15 @@ class ObjectDressup: if obj.StyleOff == "Arc": arcmove = Path.Command( arcdir, - {"X": leadend.x, "Y": leadend.y, "I": IJ.x, "J": IJ.y, "F": horizFeed}, + { + "X": leadend.x, + "Y": leadend.y, + "Z": leadend.z, + "I": IJ.x, + "J": IJ.y, + "K": IJ.z, + "F": horizFeed, + }, ) # add G2/G3 move results.append(arcmove) if obj.ExtendLeadOut != 0: