From f497d0da046c44163e8401cb44afe9d8c20a3940 Mon Sep 17 00:00:00 2001 From: Daniel Wood Date: Thu, 6 May 2021 08:09:43 +0100 Subject: [PATCH] Use defaults for retract height Use the StartDepth + SafeHeightOffset to calculate the retract height in relation to the hole start height. --- src/Mod/Path/PathScripts/PathDrilling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathDrilling.py b/src/Mod/Path/PathScripts/PathDrilling.py index 8d16b3761f..ff5a4abac6 100644 --- a/src/Mod/Path/PathScripts/PathDrilling.py +++ b/src/Mod/Path/PathScripts/PathDrilling.py @@ -187,7 +187,7 @@ class ObjectDrilling(PathCircularHoleBase.ObjectOp): if hasattr(job.SetupSheet, 'RetractHeight'): obj.RetractHeight = job.SetupSheet.RetractHeight - elif self.applyExpression(obj, 'RetractHeight', 'OpStartDepth+1mm'): + elif self.applyExpression(obj, 'RetractHeight', 'StartDepth+SetupSheet.SafeHeightOffset'): if has_job: obj.RetractHeight = 10 else: