mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-28 03:50:23 -07:00
Finish porting Print classes to XS
This commit is contained in:
@@ -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