Bugfix: crashing when concentric infill produced very narrow loops. #1740
Conflicts: lib/Slic3r/Fill/Concentric.pm
This commit is contained in:
parent
3d483722c6
commit
b961849c38
1 changed files with 2 additions and 1 deletions
|
@ -53,9 +53,10 @@ sub fill_surface {
|
||||||
$last_pos = $paths[-1]->last_point;
|
$last_pos = $paths[-1]->last_point;
|
||||||
}
|
}
|
||||||
|
|
||||||
# clip the paths to avoid the extruder to get exactly on the first point of the loop
|
# clip the paths to prevent the extruder from getting exactly on the first point of the loop
|
||||||
my $clip_length = scale($flow->nozzle_diameter) * &Slic3r::LOOP_CLIPPING_LENGTH_OVER_NOZZLE_DIAMETER;
|
my $clip_length = scale($flow->nozzle_diameter) * &Slic3r::LOOP_CLIPPING_LENGTH_OVER_NOZZLE_DIAMETER;
|
||||||
$_->clip_end($clip_length) for @paths;
|
$_->clip_end($clip_length) for @paths;
|
||||||
|
@paths = grep $_->is_valid, @paths; # remove empty paths (too short, thus eaten by clipping)
|
||||||
|
|
||||||
# TODO: return ExtrusionLoop objects to get better chained paths
|
# TODO: return ExtrusionLoop objects to get better chained paths
|
||||||
return { flow => $flow, no_sort => 1 }, @paths;
|
return { flow => $flow, no_sort => 1 }, @paths;
|
||||||
|
|
Loading…
Add table
Reference in a new issue