diff --git a/lib/Slic3r/Print/GCode.pm b/lib/Slic3r/Print/GCode.pm index ea7dafcc1..ce60996c4 100644 --- a/lib/Slic3r/Print/GCode.pm +++ b/lib/Slic3r/Print/GCode.pm @@ -75,7 +75,7 @@ sub BUILD { } } } - my $min_mm3_per_mm = min(@mm3_per_mm); + my $min_mm3_per_mm = min(@mm3_per_mm) // 0; if ($min_mm3_per_mm > 0) { # In order to honor max_print_speed we need to find a target volumetric # speed that we can use throughout the print. So we define this target