mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Fixed an excessive retract / derectract length
with the new retract_before_wipe value set to nonzero.
This commit is contained in:
parent
ff9d565ba7
commit
c9c4105289
1 changed files with 3 additions and 1 deletions
|
@ -95,6 +95,8 @@ Wipe::wipe(GCode &gcodegen, bool toolchange)
|
|||
double length = toolchange
|
||||
? gcodegen.writer().extruder()->retract_length_toolchange()
|
||||
: gcodegen.writer().extruder()->retract_length();
|
||||
// Shorten the retraction length by the amount already retracted before wipe.
|
||||
length *= (1. - gcodegen.writer().extruder()->retract_before_wipe());
|
||||
|
||||
if (length > 0) {
|
||||
/* Calculate how long we need to travel in order to consume the required
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue