Bugfix: the order of transformations was not consistent in plater and actual G-code generation. #1171 #1191

This commit is contained in:
Alessandro Ranellucci 2013-06-12 16:53:19 +02:00
parent 8e0e03247d
commit aee7b70d79
2 changed files with 38 additions and 27 deletions

View file

@ -120,6 +120,9 @@ sub add_model {
foreach my $mesh (grep $_, @meshes) {
$mesh->check_manifoldness;
# the order of these transformations must be the same as the one used in plater
# to make the object positioning consistent with the visual preview
# we ignore the per-instance rotation currently and only
# consider the first one
$mesh->rotate($object->instances->[0]->rotation, $mesh->center)