mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 01:15:53 +08:00
Fixed compilation on OSX & LInux
This commit is contained in:
parent
b610866d77
commit
b35f5780dc
@ -381,7 +381,7 @@ WipeTower::ToolChangeResult WipeTowerPrusaMM::prime(float first_layer_height, st
|
|||||||
// Minimum wipe area is 5mm wide.
|
// Minimum wipe area is 5mm wide.
|
||||||
//FIXME calculate the purge_lines_width precisely.
|
//FIXME calculate the purge_lines_width precisely.
|
||||||
float purge_lines_width = 1.3f;
|
float purge_lines_width = 1.3f;
|
||||||
wipe_area = std::max(5.f, m_wipe_area - floor(e_length / m_wipe_tower_width) * dy - purge_lines_width);
|
wipe_area = std::max(5.f, m_wipe_area - float(floor(e_length / m_wipe_tower_width)) * dy - purge_lines_width);
|
||||||
}
|
}
|
||||||
|
|
||||||
this->set_layer(first_layer_height, first_layer_height, tools.size(), true, false);
|
this->set_layer(first_layer_height, first_layer_height, tools.size(), true, false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user