mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Get rid of useless Slic3r::Fill instances
This commit is contained in:
@@ -35,6 +35,10 @@ sub filler {
|
||||
my $self = shift;
|
||||
my ($filler) = @_;
|
||||
|
||||
if (!ref $self) {
|
||||
return $FillTypes{$filler}->new;
|
||||
}
|
||||
|
||||
if (!$self->fillers->{$filler}) {
|
||||
my $f = $self->fillers->{$filler} = $FillTypes{$filler}->new;
|
||||
$f->bounding_box([ $self->print->bounding_box ]) if $filler->can('bounding_box');
|
||||
|
||||
Reference in New Issue
Block a user