mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-21 14:09:54 +02:00
Finish porting Print classes to XS
This commit is contained in:
1 parent
ba8148f4ad
commit
3f6360ee8f
10 files changed
+78
-87
No files matched your search
@@ -1,4 +1,6 @@
|
||||
package Slic3r::Print::Object;
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use List::Util qw(min max sum first);
|
||||
use Slic3r::Flow ':roles';
|
||||
@@ -54,7 +56,7 @@ sub _trigger_copies {
|
||||
# in unscaled coordinates
|
||||
sub add_copy {
|
||||
my ($self, $x, $y) = @_;
|
||||
my @copies = $self->copies;
|
||||
my @copies = @{$self->copies};
|
||||
push @copies, Slic3r::Point->new_scale($x, $y);
|
||||
$self->set_copies(\@copies);
|
||||
$self->_trigger_copies;
|
||||
|
||||
Reference in new issue
Block a user