Fix compilation and test suite

This commit is contained in:
Alessandro Ranellucci 2013-12-18 16:34:31 +01:00
parent 0591eecab7
commit 916a0a0e58
7 changed files with 59 additions and 21 deletions

View file

@ -187,7 +187,7 @@ sub slice {
$self->model_object->instances->[0]->transform_mesh($mesh, 1);
# align mesh to Z = 0 and apply XY shift
$mesh->translate((map unscale(-$_), @{$self->_copies_shift}), -$mesh->bounding_box->z_min);
$mesh->translate((map unscale(-$_), @{$self->_copies_shift}), -$self->model_object->bounding_box->z_min);
{
my $loops = $mesh->slice([ map $_->slice_z, @{$self->layers} ]);