mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
Throw an error if a user wants to print a 0mm layer
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user