mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 01:35:53 +08:00
Bugfix: warnings when trying to process bridges with no anchors
This commit is contained in:
parent
74c02e7aed
commit
1845abab70
@ -341,7 +341,7 @@ sub process_bridges {
|
|||||||
my $line = Slic3r::Line->new($edges[0]->[0], $edges[0]->[-1]);
|
my $line = Slic3r::Line->new($edges[0]->[0], $edges[0]->[-1]);
|
||||||
$bridge_angle = rad2deg_dir($line->direction);
|
$bridge_angle = rad2deg_dir($line->direction);
|
||||||
}
|
}
|
||||||
} else {
|
} elsif (@edges) {
|
||||||
my $center = bounding_box_center([ map @$_, @edges ]);
|
my $center = bounding_box_center([ map @$_, @edges ]);
|
||||||
my $x = my $y = 0;
|
my $x = my $y = 0;
|
||||||
foreach my $point (map @$, @edges) {
|
foreach my $point (map @$, @edges) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user