Add per-filament overrides for toolchange retraction

This commit is contained in:
SoftFever
2026-08-01 20:17:50 +08:00
parent 8b67ee0e2f
commit 9abec76af1
5 changed files with 35 additions and 20 deletions

View File

@@ -220,12 +220,12 @@ double Extruder::retract_restart_extra() const
double Extruder::retract_length_toolchange() const
{
return m_config->retract_length_toolchange.get_at(extruder_id());
return m_config->retract_length_toolchange.get_at(m_config_index);
}
double Extruder::retract_restart_extra_toolchange() const
{
return m_config->retract_restart_extra_toolchange.get_at(extruder_id());
return m_config->retract_restart_extra_toolchange.get_at(m_config_index);
}
double Extruder::travel_slope() const