mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-05 06:04:02 +08:00
Bugfix: fatal error when offsetting a surface results in more than one expolygon. #201
This commit is contained in:
parent
ca704c4846
commit
dbb40095b7
@ -39,10 +39,10 @@ sub group {
|
|||||||
|
|
||||||
sub offset {
|
sub offset {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
return (ref $self)->new(
|
return map (ref $self)->new(
|
||||||
expolygon => $self->expolygon->offset_ex(@_),
|
expolygon => $_,
|
||||||
map { $_ => $self->$_ } qw(surface_type depth_layers bridge_angle),
|
map { $_ => $self->$_ } qw(surface_type depth_layers bridge_angle),
|
||||||
);
|
), $self->expolygon->offset_ex(@_);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub add_hole {
|
sub add_hole {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user