From 8985372d1afa38ac1657f45e0a45858dea759f27 Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Mon, 20 Nov 2017 22:21:05 -0800 Subject: [PATCH] Don't issue x and y coordinates for the initial G0 to ClearanceHeight, #3034 --- src/Mod/Path/PathScripts/PathDressupHoldingTags.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathDressupHoldingTags.py b/src/Mod/Path/PathScripts/PathDressupHoldingTags.py index f2eec69892..06fca906d2 100644 --- a/src/Mod/Path/PathScripts/PathDressupHoldingTags.py +++ b/src/Mod/Path/PathScripts/PathDressupHoldingTags.py @@ -773,7 +773,11 @@ class ObjectTagDressup: debugEdge(edge, '++++++++') if pathData.rapid.isRapid(edge): v = edge.Vertexes[1] - commands.append(Path.Command('G0', {'X': v.X, 'Y': v.Y, 'Z': v.Z})) + if not commands and PathGeom.isRoughly(0, v.X) and PathGeom.isRoughly(0, v.Y) and not PathGeom.isRoughly(0, v.Z): + # The very first move is just to move to ClearanceHeight + commands.append(Path.Command('G0', {'Z': v.Z})) + else: + commands.append(Path.Command('G0', {'X': v.X, 'Y': v.Y, 'Z': v.Z})) else: commands.extend(PathGeom.cmdsForEdge(edge, segm=segm)) edge = None