Fixed regression in min_skirt_length. Includes regression test. #2337

This commit is contained in:
Alessandro Ranellucci 2014-11-06 21:11:59 +01:00
parent 06385221a3
commit 9372abb51e
2 changed files with 11 additions and 2 deletions

View file

@ -1,4 +1,4 @@
use Test::More tests => 4;
use Test::More tests => 5;
use strict;
use warnings;
@ -124,4 +124,11 @@ use Slic3r::Test;
ok $skirt_length > $hull_perimeter, 'skirt lenght is large enough to contain object with support';
}
{
my $config = Slic3r::Config->new_from_defaults;
$config->set('min_skirt_length', 20);
my $print = Slic3r::Test::init_print('20mm_cube', config => $config);
ok Slic3r::Test::gcode($print), 'no crash when using min_skirt_length';
}
__END__