Bugfix: fatal error when offsetting a surface results in more than one expolygon. #201
This commit is contained in:
parent
ca704c4846
commit
dbb40095b7
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue