Fixed regression throwing fatal error when using --duplicate-grid

This commit is contained in:
Alessandro Ranellucci 2012-04-29 19:01:18 +02:00
parent 17a4426358
commit 4bc49dcc5b

View File

@ -176,8 +176,8 @@ sub arrange_objects {
for my $x_copy (1..$Slic3r::duplicate_grid->[X]) { for my $x_copy (1..$Slic3r::duplicate_grid->[X]) {
for my $y_copy (1..$Slic3r::duplicate_grid->[Y]) { for my $y_copy (1..$Slic3r::duplicate_grid->[Y]) {
push @{$self->copies->[0]}, [ push @{$self->copies->[0]}, [
($self->x_length + $dist) * ($x_copy-1), ($object->x_length + $dist) * ($x_copy-1),
($self->y_length + $dist) * ($y_copy-1), ($object->y_length + $dist) * ($y_copy-1),
]; ];
} }
} }