Restore drilling op retract value to user supplied Retract Height

Restores the retract behaviour to pre 5b23af3. After 5b23af3 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 8acfd5bce7
commit 25242430f4
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)