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)