mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-01 05:01:59 +08:00
SPE-1553: Fix invalid value of more deretraction after travel.
This commit is contained in:
parent
3ed86a820a
commit
09466df1d4
@ -436,7 +436,7 @@ std::string GCodeWriter::retract(bool before_wipe)
|
|||||||
assert(factor >= 0. && factor <= 1. + EPSILON);
|
assert(factor >= 0. && factor <= 1. + EPSILON);
|
||||||
return this->_retract(
|
return this->_retract(
|
||||||
factor * m_extruder->retract_length(),
|
factor * m_extruder->retract_length(),
|
||||||
factor * m_extruder->retract_restart_extra(),
|
m_extruder->retract_restart_extra(),
|
||||||
"retract"
|
"retract"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -447,7 +447,7 @@ std::string GCodeWriter::retract_for_toolchange(bool before_wipe)
|
|||||||
assert(factor >= 0. && factor <= 1. + EPSILON);
|
assert(factor >= 0. && factor <= 1. + EPSILON);
|
||||||
return this->_retract(
|
return this->_retract(
|
||||||
factor * m_extruder->retract_length_toolchange(),
|
factor * m_extruder->retract_length_toolchange(),
|
||||||
factor * m_extruder->retract_restart_extra_toolchange(),
|
m_extruder->retract_restart_extra_toolchange(),
|
||||||
"retract for toolchange"
|
"retract for toolchange"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user