Bugfix: objects were floating in STL export after rotation and flip. #2512

This commit is contained in:
Alessandro Ranellucci 2015-01-09 00:47:40 +01:00
parent 9f4f711017
commit 64c9e3af4b
5 changed files with 13 additions and 4 deletions

View file

@ -272,6 +272,7 @@ sub rotate {
} elsif ($axis == Z) {
$_->mesh->rotate_z($angle) for @{$self->volumes};
}
$self->set_origin_translation(Slic3r::Pointf3->new(0,0,0));
$self->invalidate_bounding_box;
}
@ -285,6 +286,7 @@ sub flip {
} elsif ($axis == Z) {
$_->mesh->flip_z for @{$self->volumes};
}
$self->set_origin_translation(Slic3r::Pointf3->new(0,0,0));
$self->invalidate_bounding_box;
}