Throw an error if a user wants to print a 0mm layer
This commit is contained in:
parent
69942d2076
commit
0f5e2e3076
1 changed files with 2 additions and 0 deletions
|
@ -514,6 +514,8 @@ sub validate {
|
|||
if $Slic3r::layer_height > $Slic3r::nozzle_diameter;
|
||||
die "First layer height can't be greater than --nozzle-diameter\n"
|
||||
if ($Slic3r::layer_height * $Slic3r::first_layer_height_ratio) > $Slic3r::nozzle_diameter;
|
||||
die "First layer height can't be zero or negative\n"
|
||||
if ($Slic3r::layer_height * $Slic3r::first_layer_height_ratio) <= 0;
|
||||
|
||||
if ($Slic3r::extrusion_width_ratio) {
|
||||
$Slic3r::flow_width = $Slic3r::layer_height * $Slic3r::extrusion_width_ratio;
|
||||
|
|
Loading…
Reference in a new issue