From e918ea9c65b7db75842f5947af5c1bce30a8535b Mon Sep 17 00:00:00 2001 From: bubnikv Date: Mon, 24 Apr 2017 09:51:24 +0200 Subject: [PATCH] Fixes Variable Layer Height issue when max_layer_height at its default of zero https://github.com/prusa3d/Slic3r/issues/267 --- lib/Slic3r/GUI/Plater/ObjectSettingsDialog.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Slic3r/GUI/Plater/ObjectSettingsDialog.pm b/lib/Slic3r/GUI/Plater/ObjectSettingsDialog.pm index d4cd38a08..d86765d5f 100644 --- a/lib/Slic3r/GUI/Plater/ObjectSettingsDialog.pm +++ b/lib/Slic3r/GUI/Plater/ObjectSettingsDialog.pm @@ -155,6 +155,7 @@ sub _clamp_layer_height $max_nozzle_dmr = $nozzle_dmrs ->[$i] if ($nozzle_dmrs ->[$i] > $max_nozzle_dmr ); } $min_layer_height = 0.005 if ($min_layer_height < 0.005); + $max_layer_height = $max_nozzle_dmr * 0.75 if ($max_layer_height == 0.); $max_layer_height = $max_nozzle_dmr if ($max_layer_height > $max_nozzle_dmr); return ($value < $min_layer_height) ? $min_layer_height : ($value > $max_layer_height) ? $max_layer_height : $value;