mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-04 21:30:41 +08:00
Fixed an bug that filament_minimal_purge_on_wipe_tower option doesn't work for soluable filament (#8397)
This commit is contained in:
parent
b4a7721cc0
commit
fcc5489911
@ -1601,7 +1601,11 @@ void WipeTower2::save_on_last_wipe()
|
|||||||
auto& toolchange = m_layer_info->tool_changes[i];
|
auto& toolchange = m_layer_info->tool_changes[i];
|
||||||
tool_change(toolchange.new_tool);
|
tool_change(toolchange.new_tool);
|
||||||
|
|
||||||
if (i == idx) {
|
// Orca: allow calculation of the required depth and wipe volume for soluable toolchanges as well
|
||||||
|
// NOTE: it's not clear if this is the right way, technically we should disable wipe tower if soluble filament is used as it
|
||||||
|
// will will make the wipe tower unstable. Need to revist this in the future.
|
||||||
|
|
||||||
|
// if (i == idx) {
|
||||||
float width = m_wipe_tower_width - 3*m_perimeter_width; // width we draw into
|
float width = m_wipe_tower_width - 3*m_perimeter_width; // width we draw into
|
||||||
|
|
||||||
float volume_to_save = length_to_volume(finish_layer().total_extrusion_length_in_plane(), m_perimeter_width, m_layer_info->height);
|
float volume_to_save = length_to_volume(finish_layer().total_extrusion_length_in_plane(), m_perimeter_width, m_layer_info->height);
|
||||||
@ -1611,9 +1615,9 @@ void WipeTower2::save_on_last_wipe()
|
|||||||
|
|
||||||
toolchange.required_depth = toolchange.ramming_depth + depth_to_wipe;
|
toolchange.required_depth = toolchange.ramming_depth + depth_to_wipe;
|
||||||
toolchange.wipe_volume = volume_left_to_wipe;
|
toolchange.wipe_volume = volume_left_to_wipe;
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user