Fix part of SPE-1956: Toolchanges count incorrect when wipe tower is disabled

This commit is contained in:
Lukas Matena 2023-11-02 09:59:49 +01:00
parent 4b4c208ed2
commit 97714d6f8f

View File

@ -479,6 +479,9 @@ void ToolOrdering::fill_wipe_tower_partitions(const PrintConfig &config, coordf_
bool ToolOrdering::insert_wipe_tower_extruder()
{
if (!m_print_config_ptr->wipe_tower)
return false;
// In case that wipe_tower_extruder is set to non-zero, we must make sure that the extruder will be in the list.
bool changed = false;
if (m_print_config_ptr->wipe_tower_extruder != 0) {