mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-01 16:58:01 +02:00
Optimization in Polyline instantiation
This commit is contained in:
@@ -21,7 +21,7 @@ use Slic3r::Geometry qw(scale);
|
||||
foreach my $point (@$points) {
|
||||
@$point = map scale $_, @$point;
|
||||
}
|
||||
my $polyline = Slic3r::Polyline->new($points);
|
||||
my $polyline = Slic3r::Polyline->new(@$points);
|
||||
my $serialized = $polyline->serialize;
|
||||
my $deserialized = Slic3r::Polyline->deserialize($serialized);
|
||||
is scalar(@$deserialized), scalar(@$points), 'number of deserialized points';
|
||||
|
||||
Reference in New Issue
Block a user