Fix error after recent change about bridges

This commit is contained in:
Alessandro Ranellucci 2013-07-29 12:15:30 +02:00
parent 1f36406a62
commit 2a2d15e422
2 changed files with 9 additions and 12 deletions

View file

@ -157,17 +157,13 @@ sub make_fill {
next SURFACE unless $density > 0;
}
my @paths;
{
my $f = $self->filler($filler);
$f->layer_id($layerm->id);
@paths = $f->fill_surface(
$surface,
density => $density,
flow_spacing => $flow_spacing,
);
}
my $params = shift @paths;
my $f = $self->filler($filler);
$f->layer_id($layerm->id);
my ($params, @paths) = $f->fill_surface(
$surface,
density => $density,
flow_spacing => $flow_spacing,
);
# ugly hack(tm) to get the right amount of flow (GCode.pm should be fixed)
$params->{flow_spacing} = $layerm->extruders->{infill}->bridge_flow->width if $is_bridge;