Have Clipper.pm only return ExPolygon::XS objects

This commit is contained in:
Alessandro Ranellucci committed 2013-07-07 15:17:09 +02:00
1 parent 9dc1a3c69d
commit a1e4bda670
8 files changed
+22 -16

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@ sub clone {
return (ref $self)->new(
(map { $_ => $self->$_ } qw(surface_type thickness thickness_layers bridge_angle)),
expolygon => ($p{expolygon} ? delete $p{expolygon} : $self->expolygon->clone),
expolygon => (defined $p{expolygon} ? delete $p{expolygon} : $self->expolygon->clone),
%p,
);
}