When using raft, validate first layer height against support material extruder only instead of taking other extruders into account, thus potentially allowing larger nozzles to be used for it. #2701

This commit is contained in:
Alessandro Ranellucci 2015-03-06 21:35:00 +01:00
parent 9332c21791
commit 095391d702
8 changed files with 85 additions and 29 deletions

View file

@ -1,4 +1,4 @@
use Test::More tests => 24;
use Test::More tests => 25;
use strict;
use warnings;
@ -179,7 +179,7 @@ use Slic3r::Test;
$test->(70);
}
TTT: {
{
my $config = Slic3r::Config->new_from_defaults;
$config->set('brim_width', 0);
$config->set('skirts', 0);
@ -219,4 +219,14 @@ TTT: {
ok !$test->(), 'bridge speed is not used when raft_layers > 0 and support_material_contact_distance == 0';
}
{
my $config = Slic3r::Config->new_from_defaults;
$config->set('raft_layers', 3);
$config->set('nozzle_diameter', [0.4, 1]);
$config->set('first_layer_height', 0.8);
$config->set('support_material_extruder', 2);
my $print = Slic3r::Test::init_print('20mm_cube', config => $config);
ok Slic3r::Test::gcode($print), 'first_layer_height is validated with support material extruder nozzle diameter when using raft layers';
}
__END__