Fix of a wipe tower - wipe tower shrinking by the amount of material

wiped into the zig-zag pattern.
This commit is contained in:
bubnikv 2017-06-15 10:53:37 +02:00
parent b8369ab19a
commit a1f6403463

View File

@ -380,7 +380,7 @@ WipeTower::ToolChangeResult WipeTowerPrusaMM::tool_change(int tool, bool last_in
// Number of whole wipe lines, that would be extruded to wipe as much material as the finish_layer(). // Number of whole wipe lines, that would be extruded to wipe as much material as the finish_layer().
float num_lines_extruded = floor(e_length / m_wipe_tower_width); float num_lines_extruded = floor(e_length / m_wipe_tower_width);
// Minimum wipe area is 5mm wide. // Minimum wipe area is 5mm wide.
wipe_area -= num_lines_extruded * dy; wipe_area = m_wipe_area - num_lines_extruded * dy;
if (wipe_area < 5.) { if (wipe_area < 5.) {
wipe_area = 5.; wipe_area = 5.;
break; break;