mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 03:13:39 +00:00
Don't require the print object in filler objects
This commit is contained in:
@@ -45,9 +45,13 @@ sub BUILD {
|
||||
sub filler {
|
||||
my $self = shift;
|
||||
my ($filler) = @_;
|
||||
|
||||
if (!$self->fillers->{$filler}) {
|
||||
$self->fillers->{$filler} = $FillTypes{$filler}->new(print => $self->print);
|
||||
$self->fillers->{$filler}->max_print_dimension($self->max_print_dimension);
|
||||
my $f = $FillTypes{$filler}->new(
|
||||
max_print_dimension => $self->max_print_dimension
|
||||
);
|
||||
$f->bounding_box([ $self->print->bounding_box ]) if $filler->can('bounding_box');
|
||||
$self->fillers->{$filler} = $f;
|
||||
}
|
||||
return $self->fillers->{$filler};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user