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 {
|
||||
my $self = shift;
|
||||
return (ref $self)->new(
|
||||
expolygon => $self->expolygon->offset_ex(@_),
|
||||
return map (ref $self)->new(
|
||||
expolygon => $_,
|
||||
map { $_ => $self->$_ } qw(surface_type depth_layers bridge_angle),
|
||||
);
|
||||
), $self->expolygon->offset_ex(@_);
|
||||
}
|
||||
|
||||
sub add_hole {
|
||||
|
|
Loading…
Reference in a new issue