mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Fix #2662
This commit is contained in:
committed by
GitHub
parent
fa9148670c
commit
0a31b33b2b
@@ -54,11 +54,11 @@ double Extruder::retract(double length, double restart_extra)
|
|||||||
if (m_config->use_relative_e_distances)
|
if (m_config->use_relative_e_distances)
|
||||||
m_share_E = 0.;
|
m_share_E = 0.;
|
||||||
double to_retract = std::max(0., length - m_share_retracted);
|
double to_retract = std::max(0., length - m_share_retracted);
|
||||||
|
m_restart_extra = restart_extra;
|
||||||
if (to_retract > 0.) {
|
if (to_retract > 0.) {
|
||||||
m_share_E -= to_retract;
|
m_share_E -= to_retract;
|
||||||
m_absolute_E -= to_retract;
|
m_absolute_E -= to_retract;
|
||||||
m_share_retracted += to_retract;
|
m_share_retracted += to_retract;
|
||||||
m_restart_extra = restart_extra;
|
|
||||||
}
|
}
|
||||||
return to_retract;
|
return to_retract;
|
||||||
} else {
|
} else {
|
||||||
@@ -66,11 +66,11 @@ double Extruder::retract(double length, double restart_extra)
|
|||||||
if (m_config->use_relative_e_distances)
|
if (m_config->use_relative_e_distances)
|
||||||
m_E = 0.;
|
m_E = 0.;
|
||||||
double to_retract = std::max(0., length - m_retracted);
|
double to_retract = std::max(0., length - m_retracted);
|
||||||
|
m_restart_extra = restart_extra;
|
||||||
if (to_retract > 0.) {
|
if (to_retract > 0.) {
|
||||||
m_E -= to_retract;
|
m_E -= to_retract;
|
||||||
m_absolute_E -= to_retract;
|
m_absolute_E -= to_retract;
|
||||||
m_retracted += to_retract;
|
m_retracted += to_retract;
|
||||||
m_restart_extra = restart_extra;
|
|
||||||
}
|
}
|
||||||
return to_retract;
|
return to_retract;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user