Fix for incomplete commit causing thin gaps to throw an error

degen-loop-screen
Alessandro Ranellucci 2012-06-30 17:23:55 +02:00
parent b9008a99f9
commit cbb111ee64
3 changed files with 11 additions and 1 deletions

View File

@ -22,6 +22,11 @@ sub deserialize {
$self->polygon($self->polygon->deserialize);
}
sub shortest_path {
my $self = shift;
return $self;
}
sub split_at {
my $self = shift;
my ($point) = @_;

View File

@ -47,6 +47,11 @@ sub deserialize {
$self->polyline($self->polyline->deserialize);
}
sub shortest_path {
my $self = shift;
return $self;
}
sub clip_end {
my $self = shift;
my ($distance) = @_;

View File

@ -605,7 +605,7 @@ sub write_gcode {
$gcode .= $gcodegen->set_tool($Slic3r::infill_extruder-1);
$gcode .= $gcodegen->set_acceleration($Slic3r::infill_acceleration);
for my $fill (@{ $layer->fills }) {
$gcode .= $gcodegen->extrude_path($_, 'fill')
$gcode .= $gcodegen->extrude($_, 'fill')
for $fill->shortest_path($gcodegen->last_pos);
}