mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
Make support material generation idempotent
This commit is contained in:
@@ -1005,8 +1005,8 @@ 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
|
||||
$self->clear_support_layers;
|
||||
|
||||
return unless ($self->config->support_material || $self->config->raft_layers > 0)
|
||||
&& scalar(@{$self->layers}) >= 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user