Cache Slic3r::Fill object

This commit is contained in:
Alessandro Ranellucci 2013-04-18 18:40:59 +02:00
parent 312bb285a0
commit e088d9b3f7
3 changed files with 11 additions and 8 deletions

View file

@ -269,10 +269,8 @@ sub make_perimeters {
# fill gaps
if ($Slic3r::Config->gap_fill_speed > 0 && $Slic3r::Config->fill_density > 0 && @gaps) {
my $filler = Slic3r::Fill::Rectilinear->new(
bounding_box => [ $self->layer->object->print->bounding_box ],
layer_id => $self->layer->id,
);
my $filler = $self->layer->object->print->fill_maker->filler('rectilinear');
$filler->layer_id($self->layer->id);
# we should probably use this code to handle thin walls and remove that logic from
# make_surfaces(), but we need to enable dynamic extrusion width before as we can't