mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 07:03:59 -06:00
Bugfix: fatal error and warnings removed when cleaning some dirty layers
This commit is contained in:
parent
00c6287488
commit
debdd164e2
3 changed files with 3 additions and 2 deletions
|
@ -654,7 +654,7 @@ sub angle3points {
|
|||
sub polyline_remove_parallel_continuous_edges {
|
||||
my ($points, $isPolygon) = @_;
|
||||
|
||||
for (my $i = $isPolygon ? 0 : 2; $i <= $#$points; $i++) {
|
||||
for (my $i = $isPolygon ? 0 : 2; $i <= $#$points && @$points >= 3; $i++) {
|
||||
if (Slic3r::Geometry::lines_parallel([$points->[$i-2], $points->[$i-1]], [$points->[$i-1], $points->[$i]])) {
|
||||
# we can remove $points->[$i-1]
|
||||
splice @$points, $i-1, 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue