mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
Fix auto-arrange of objects
This commit is contained in:
@@ -229,7 +229,7 @@ sub arrange_objects {
|
|||||||
: $Slic3r::Config->duplicate_distance;
|
: $Slic3r::Config->duplicate_distance;
|
||||||
|
|
||||||
my @positions = Slic3r::Geometry::arrange
|
my @positions = Slic3r::Geometry::arrange
|
||||||
($total_parts, $partx, $party, (map scale $_, @$Slic3r::Config->bed_size), scale $distance);
|
($total_parts, $partx, $party, (map scale $_, @{$Slic3r::Config->bed_size}), scale $distance);
|
||||||
|
|
||||||
for my $obj_idx (0..$#{$self->objects}) {
|
for my $obj_idx (0..$#{$self->objects}) {
|
||||||
@{$self->copies->[$obj_idx]} = splice @positions, 0, scalar @{$self->copies->[$obj_idx]};
|
@{$self->copies->[$obj_idx]} = splice @positions, 0, scalar @{$self->copies->[$obj_idx]};
|
||||||
|
|||||||
Reference in New Issue
Block a user