Fixes Variable Layer Height issue when max_layer_height at its default of zero
https://github.com/prusa3d/Slic3r/issues/267
This commit is contained in:
parent
69c0f55679
commit
e918ea9c65
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user