Fixed regression causing skirt_height to he honored incorrectly when printing more than one object. Includes regression test #1200

This commit is contained in:
Alessandro Ranellucci 2013-05-30 20:06:05 +02:00
parent 8f5a958948
commit 7baaf6bf5d
5 changed files with 56 additions and 7 deletions

View file

@ -44,7 +44,9 @@ sub init_print {
$config->set('gcode_comments', 1) if $ENV{SLIC3R_TESTS_GCODE};
my $print = Slic3r::Print->new(config => $config);
$print->add_model(model($model_name));
$model_name = [$model_name] if ref($model_name) ne 'ARRAY';
$print->add_model(model($_)) for @$model_name;
$print->validate;
return $print;