Minor typos preventing correct positioning after recent XS merge

This commit is contained in:
Alessandro Ranellucci 2013-09-05 14:23:31 +02:00
parent 67aefdccc7
commit 2d3dae621a
2 changed files with 2 additions and 1 deletions

View file

@ -807,7 +807,7 @@ sub make_model {
$new_model_object->add_instance(
rotation => $plater_object->rotate, # around center point
scaling_factor => $plater_object->scale,
offset => Slic3r::Point->new($_),
offset => Slic3r::Point->new(@$_),
) for @{$plater_object->instances};
}

View file

@ -154,6 +154,7 @@ sub add_model {
print => $self,
meshes => [ @meshes ],
copies => [
map Slic3r::Point->new(@$_),
$object->instances
? (map [ scale($_->offset->[X] - $align[X]) - $align2[X], scale($_->offset->[Y] - $align[Y]) - $align2[Y] ], @{$object->instances})
: [0,0],