1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-16 08:54:26 +00:00

Make support material generation idempotent

This commit is contained in:
Alessandro Ranellucci
2014-06-11 18:02:51 +02:00
parent 7ccfd2f024
commit 1f497c0f7c
+2 -2
View File
@@ -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;