Fixed regression in object placement in STL export. #1552

This commit is contained in:
Alessandro Ranellucci 2013-12-07 21:03:10 +01:00
parent 00e8ba4781
commit 0afee63e84

View File

@ -216,9 +216,9 @@ sub mesh {
foreach my $instance (@instances) {
my $mesh = $object->mesh->clone;
if ($instance) {
$mesh->rotate($instance->rotation, Slic3r::Point->new(0,0));
$mesh->scale($instance->scaling_factor);
$mesh->align_to_origin;
$mesh->rotate($instance->rotation, $object->center_2D);
$mesh->scale($instance->scaling_factor);
$mesh->translate(@{$instance->offset}, 0);
}
push @meshes, $mesh;