diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2014-04-05 12:09:05 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2014-04-05 12:09:05 +0400 |
commit | 6f3844c1ba87610a29356e91081811c35d815ddc (patch) | |
tree | cfd308008fa52e43f368b6fc23d0692860d31b64 /t/multi.t | |
parent | a6dd68a2a63b5c8711b380da751223c13d416f43 (diff) |
Fix crash when using multiple skirts with a single, non-zero, extruder. Includes regression test
Diffstat (limited to 't/multi.t')
-rw-r--r-- | t/multi.t | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1,4 +1,4 @@ -use Test::More tests => 6; +use Test::More tests => 7; use strict; use warnings; @@ -67,6 +67,17 @@ use Slic3r::Test; } { + my $config = Slic3r::Config->new_from_defaults; + $config->set('perimeter_extruder', 2); + $config->set('infill_extruder', 2); + $config->set('support_material_extruder', 2); + $config->set('support_material_interface_extruder', 2); + + my $print = Slic3r::Test::init_print('20mm_cube', config => $config); + ok Slic3r::Test::gcode($print), 'no errors when using multiple skirts with a single, non-zero, extruder'; +} + +{ my $model = Slic3r::Model->new; my $object = $model->add_object; my $lower_config = $model->set_material('lower')->config; |