Fix of unit tests after change of default nozzle and filament diameter.

This commit is contained in:
bubnikv 2019-05-14 15:35:54 +02:00
parent bdd9ed123a
commit 74fee6ef78
2 changed files with 5 additions and 1 deletions

View File

@ -22,6 +22,8 @@ use Slic3r::Test;
$config->set('bottom_solid_layers', 1); $config->set('bottom_solid_layers', 1);
$config->set('first_layer_extrusion_width', 2); $config->set('first_layer_extrusion_width', 2);
$config->set('first_layer_height', '100%'); $config->set('first_layer_height', '100%');
$config->set('filament_diameter', 3.0);
$config->set('nozzle_diameter', 0.5);
my $print = Slic3r::Test::init_print('20mm_cube', config => $config); my $print = Slic3r::Test::init_print('20mm_cube', config => $config);
my @E_per_mm = (); my @E_per_mm = ();

View File

@ -148,7 +148,9 @@ use Slic3r::Test;
$config->set('solid_infill_speed', 99); $config->set('solid_infill_speed', 99);
$config->set('top_solid_infill_speed', 99); $config->set('top_solid_infill_speed', 99);
$config->set('bridge_speed', 99); $config->set('bridge_speed', 99);
$config->set('filament_diameter', 3.0);
$config->set('nozzle_diameter', 0.5);
my $print = Slic3r::Test::init_print('sloping_hole', config => $config); my $print = Slic3r::Test::init_print('sloping_hole', config => $config);
my %solid_layers = (); # Z => 1 my %solid_layers = (); # Z => 1
Slic3r::GCode::Reader->new->parse(Slic3r::Test::gcode($print), sub { Slic3r::GCode::Reader->new->parse(Slic3r::Test::gcode($print), sub {