mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 02:37:51 -06:00
Make support material generation idempotent
This commit is contained in:
parent
7ccfd2f024
commit
1f497c0f7c
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue