mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-08 14:19:08 +08: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
@ -95,7 +95,9 @@ 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
|
||||
amount of retraction. In other words, how far do we move in XY at wipe_speed
|
||||
|
Loading…
x
Reference in New Issue
Block a user