Bugfix: when slicing the same plate multiple times, the results contained old and duplicate data
This commit is contained in:
parent
8e0e6107a3
commit
847cf3c5b8
3 changed files with 14 additions and 0 deletions
|
@ -370,6 +370,7 @@ sub export_gcode {
|
||||||
} else {
|
} else {
|
||||||
$print->export_gcode(%params);
|
$print->export_gcode(%params);
|
||||||
}
|
}
|
||||||
|
$print->cleanup;
|
||||||
Slic3r::GUI::warning_catcher($self)->($_) for @warnings;
|
Slic3r::GUI::warning_catcher($self)->($_) for @warnings;
|
||||||
}
|
}
|
||||||
$process_dialog->Destroy;
|
$process_dialog->Destroy;
|
||||||
|
|
|
@ -60,6 +60,14 @@ sub add_object_from_mesh {
|
||||||
return $object;
|
return $object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub cleanup {
|
||||||
|
my $self = shift;
|
||||||
|
$_->cleanup for @{$self->objects};
|
||||||
|
@{$self->skirt} = ();
|
||||||
|
$self->total_extrusion_length(0);
|
||||||
|
$self->processing_time(0);
|
||||||
|
}
|
||||||
|
|
||||||
sub layer_count {
|
sub layer_count {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $count = 0;
|
my $count = 0;
|
||||||
|
|
|
@ -152,6 +152,11 @@ sub slice {
|
||||||
if !@{$self->layers};
|
if !@{$self->layers};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub cleanup {
|
||||||
|
my $self = shift;
|
||||||
|
@{$self->layers} = ();
|
||||||
|
}
|
||||||
|
|
||||||
sub detect_surfaces_type {
|
sub detect_surfaces_type {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
Slic3r::debugf "Detecting solid surfaces...\n";
|
Slic3r::debugf "Detecting solid surfaces...\n";
|
||||||
|
|
Loading…
Reference in a new issue