mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-30 12:11:15 -06:00
Partial GUI compatibility with XS data
This commit is contained in:
parent
8380ca812b
commit
5409c27852
4 changed files with 11 additions and 14 deletions
|
|
@ -35,11 +35,6 @@ sub clone {
|
|||
# no-op for legacy with ::XS
|
||||
sub arrayref { $_[0] }
|
||||
|
||||
sub threadsafe_clone {
|
||||
my $self = shift;
|
||||
return (ref $self)->new(map $_->threadsafe_clone, @$self);
|
||||
}
|
||||
|
||||
sub contour {
|
||||
my $self = shift;
|
||||
return $self->[0];
|
||||
|
|
@ -314,7 +309,7 @@ has 'expolygons' => (is => 'ro', default => sub { [] });
|
|||
sub clone {
|
||||
my $self = shift;
|
||||
return (ref $self)->new(
|
||||
expolygons => [ map $_->threadsafe_clone, @{$self->expolygons} ],
|
||||
expolygons => [ map $_->clone, @{$self->expolygons} ],
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue