Restore drilling op retract value to user supplied Retract Height

Restores the retract behaviour to pre f7b73e8. After f7b73e8 Retract
Height is no longer used.
This commit is contained in:
Mikael Ågren
2022-06-05 07:55:11 +02:00
committed by agren
parent e84f1ef14e
commit 5db753ae0a
3 changed files with 46 additions and 3 deletions

View File

@@ -233,7 +233,9 @@ class ObjectDrilling(PathCircularHoleBase.ObjectOp):
repeat = 1 # technical debt: Add a repeat property for user control
try:
drillcommands = generator.generate(edge, dwelltime, peckdepth, repeat)
drillcommands = generator.generate(
edge, dwelltime, peckdepth, repeat, obj.RetractHeight.Value
)
except ValueError as e: # any targets that fail the generator are ignored
PathLog.info(e)