mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 13:25:56 +08:00
fix zero max layer height
supermerill/SuperSlicer#1569 fix commit 26500cd9a019578c6f21763a6596d4ea3a3ed31f
This commit is contained in:
parent
f8ca156bf5
commit
f71cd1d062
@ -3033,8 +3033,6 @@ void TabPrinter::toggle_options()
|
||||
const std::vector<double>& nozzle_diameters = m_config->option<ConfigOptionFloats>("nozzle_diameter")->values;
|
||||
std::vector<double> max_layer_height = m_config->option<ConfigOptionFloats>("max_layer_height")->values;
|
||||
for (int i = 0; i < max_layer_height.size(); i++) {
|
||||
if (max_layer_height[i] == 0)
|
||||
max_layer_height[i] = nozzle_diameters[i] * 0.75;
|
||||
if ((int64_t)(max_layer_height[i] * 1000000.) % z_step_Mlong != 0) {
|
||||
if (!has_changed)
|
||||
new_conf = *m_config;
|
||||
|
Loading…
x
Reference in New Issue
Block a user