Fix auto-arrange of objects

This commit is contained in:
Henrik Brix Andersen 2012-07-30 19:30:41 +02:00
parent 0aae15e2a8
commit 83fccf0875

View File

@ -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]};