Require at least one perimeter

This commit is contained in:
Alessandro Ranellucci 2011-09-04 11:06:15 +02:00
parent 4395cf95b5
commit 416ad241ea

View File

@ -9,8 +9,9 @@ sub make_perimeter {
my ($layer) = @_;
printf "Making perimeter for layer %d:\n", $layer->id;
# skip entire section if no perimeters are requested
return unless $Slic3r::perimeter_offsets > 0;
# at least one perimeter is required
die "Can't extrude object without any perimeter!\n"
if $Slic3r::perimeter_offsets == 0;
my (@perimeters, %contours, %holes) = ();
foreach my $surface (@{ $layer->surfaces }) {