fix zero max layer height

supermerill/SuperSlicer#1569
fix commit 26500cd9a019578c6f21763a6596d4ea3a3ed31f
This commit is contained in:
supermerill 2021-09-27 14:06:00 +02:00
parent f8ca156bf5
commit f71cd1d062

View File

@ -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;