Generate raft automatically even when support material is disabled

This commit is contained in:
Alessandro Ranellucci 2013-02-02 16:16:43 +01:00
parent 177f1a9bf0
commit c7b4d99d7e
2 changed files with 6 additions and 4 deletions

View file

@ -559,6 +559,8 @@ sub generate_support_material {
my @current_support_regions = (); # expolygons we've started to support (i.e. below the empty interface layers)
my @queue = (); # the number of items of this array determines the number of empty interface layers
for my $i (reverse 0 .. $#{$self->layers}) {
next unless $Slic3r::Config->support_material || ($i <= $Slic3r::Config->raft_layers); # <= because we need to start from the first non-raft layer
my $layer = $self->layers->[$i];
my $lower_layer = $i > 0 ? $self->layers->[$i-1] : undef;