Bugfix: enabling raft layers generated support for the whole model. Includes regression test. #1375

This commit is contained in:
Alessandro Ranellucci 2013-09-17 23:51:30 +02:00
parent e0da81e8bf
commit a7989e382c
3 changed files with 17 additions and 8 deletions

View file

@ -787,7 +787,8 @@ sub combine_infill {
sub generate_support_material {
my $self = shift;
return unless $self->config->support_material && $self->layer_count >= 2;
return unless ($self->config->support_material || $self->config->raft_layers > 0)
&& $self->layer_count >= 2;
Slic3r::Print::SupportMaterial->new(object => $self)->generate;
}