mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 10:17:55 -06:00
Fix #2662
This commit is contained in:
parent
fa9148670c
commit
0a31b33b2b
1 changed files with 2 additions and 2 deletions
|
@ -54,11 +54,11 @@ double Extruder::retract(double length, double restart_extra)
|
|||
if (m_config->use_relative_e_distances)
|
||||
m_share_E = 0.;
|
||||
double to_retract = std::max(0., length - m_share_retracted);
|
||||
m_restart_extra = restart_extra;
|
||||
if (to_retract > 0.) {
|
||||
m_share_E -= to_retract;
|
||||
m_absolute_E -= to_retract;
|
||||
m_share_retracted += to_retract;
|
||||
m_restart_extra = restart_extra;
|
||||
}
|
||||
return to_retract;
|
||||
} else {
|
||||
|
@ -66,11 +66,11 @@ double Extruder::retract(double length, double restart_extra)
|
|||
if (m_config->use_relative_e_distances)
|
||||
m_E = 0.;
|
||||
double to_retract = std::max(0., length - m_retracted);
|
||||
m_restart_extra = restart_extra;
|
||||
if (to_retract > 0.) {
|
||||
m_E -= to_retract;
|
||||
m_absolute_E -= to_retract;
|
||||
m_retracted += to_retract;
|
||||
m_restart_extra = restart_extra;
|
||||
}
|
||||
return to_retract;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue