mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-13 03:11:50 +08:00
Bugfix: crashing when concentric infill produced very narrow loops. #1740
This commit is contained in:
parent
d099118ca7
commit
ee82e56a4f
@ -47,9 +47,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_spacing * &Slic3r::LOOP_CLIPPING_LENGTH_OVER_SPACING;
|
my $clip_length = scale $flow_spacing * &Slic3r::LOOP_CLIPPING_LENGTH_OVER_SPACING;
|
||||||
$_->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_spacing => $flow_spacing, no_sort => 1 }, @paths;
|
return { flow_spacing => $flow_spacing, no_sort => 1 }, @paths;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user