From ee92a1d2f9d548a33eedf05aada620436b3ad420 Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Sun, 13 Dec 2020 15:00:05 -0800 Subject: [PATCH] Adding g0 to safety to base op so it's applied to all ops --- src/Mod/Path/PathScripts/PathOp.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Path/PathScripts/PathOp.py b/src/Mod/Path/PathScripts/PathOp.py index 0a16a1361c..ee1cde01dc 100644 --- a/src/Mod/Path/PathScripts/PathOp.py +++ b/src/Mod/Path/PathScripts/PathOp.py @@ -524,6 +524,10 @@ class ObjectOp(object): result = self.opExecute(obj) # pylint: disable=assignment-from-no-return + if self.commandlist and (FeatureHeights & self.opFeatures(obj)): + # Let's finish by rapid to clearance...just for safety + self.commandlist.append(Path.Command("G0", {"Z": obj.ClearanceHeight.Value})) + path = Path.Path(self.commandlist) obj.Path = path obj.CycleTime = self.getCycleTimeEstimate(obj)