Bugfix: previous brim and skirt were not cleared when disabled after first G-code export. #2024

This commit is contained in:
Alessandro Ranellucci 2014-05-10 20:54:12 +02:00
parent a02a7f1a0f
commit 47940a712d
2 changed files with 13 additions and 4 deletions

View file

@ -965,6 +965,9 @@ sub combine_infill {
sub generate_support_material {
my $self = shift;
# TODO: make this method idempotent by removing all support layers
# before checking whether we need to generate support or not
return unless ($self->config->support_material || $self->config->raft_layers > 0)
&& scalar(@{$self->layers}) >= 2;