Skip to content

Commit

Permalink
fix zero max layer height
Browse files Browse the repository at this point in the history
#1569
fix commit 26500cd
  • Loading branch information
supermerill committed Sep 27, 2021
1 parent f8ca156 commit f71cd1d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/slic3r/GUI/Tab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f71cd1d

Please sign in to comment.