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

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

No files matched your search

+3
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;