mirror of https://github.com/vitalif/Slic3r
Make support material generation idempotent
parent
7ccfd2f024
commit
1f497c0f7c
|
@ -1005,8 +1005,8 @@ sub combine_infill {
|
||||||
sub generate_support_material {
|
sub generate_support_material {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|
||||||
# TODO: make this method idempotent by removing all support layers
|
$self->clear_support_layers;
|
||||||
# before checking whether we need to generate support or not
|
|
||||||
return unless ($self->config->support_material || $self->config->raft_layers > 0)
|
return unless ($self->config->support_material || $self->config->raft_layers > 0)
|
||||||
&& scalar(@{$self->layers}) >= 2;
|
&& scalar(@{$self->layers}) >= 2;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue