mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-02 20:51:23 -07:00
Wipe retraction adjusted based on available wipe distance and retraction speed
This commit is contained in:
parent
057926f957
commit
e8a4c4aac1
3 changed files with 39 additions and 1 deletions
|
|
@ -682,6 +682,15 @@ std::string GCodeWriter::extrude_to_xyz(const Vec3d &point, double dE, const std
|
|||
return w.string();
|
||||
}
|
||||
|
||||
std::string GCodeWriter::retract(double retraction_length, bool toolchange)
|
||||
{
|
||||
return this->_retract(
|
||||
retraction_length,
|
||||
toolchange ? m_extruder->retract_restart_extra(): m_extruder->retract_restart_extra_toolchange(),
|
||||
"retract"
|
||||
);
|
||||
}
|
||||
|
||||
std::string GCodeWriter::retract(bool before_wipe)
|
||||
{
|
||||
double factor = before_wipe ? m_extruder->retract_before_wipe() : 1.;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue