Fixed regression causing rotation from plater to also translate the resulting G-code. #1191

This commit is contained in:
Alessandro Ranellucci 2013-05-31 19:41:31 +02:00
parent c62b49d1af
commit 49531f6f78
4 changed files with 5 additions and 6 deletions

View file

@ -718,7 +718,7 @@ sub make_model {
}
$new_model_object->scale($plater_object->scale);
$new_model_object->add_instance(
rotation => $plater_object->rotate,
rotation => $plater_object->rotate, # around center point
offset => [ @$_ ],
) for @{$plater_object->instances};
$new_model_object->align_to_origin;
@ -1128,7 +1128,6 @@ sub instances_count {
sub make_thumbnail {
my $self = shift;
my @points = map [ @$_[X,Y] ], @{$self->model_object->mesh->vertices};
my $mesh = $self->model_object->mesh;
my $thumbnail = Slic3r::ExPolygon::Collection->new(
expolygons => (@{$mesh->facets} <= 5000)