From 79a2bab261acae8c3d5d769124c3d8afc09a6974 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Tue, 14 Jan 2014 21:46:39 +0100 Subject: [PATCH] Revert stupid change that broke plater and provide the correct fix for --info --- lib/Slic3r/Model.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/Model.pm b/lib/Slic3r/Model.pm index 2e77aee36..04734145b 100644 --- a/lib/Slic3r/Model.pm +++ b/lib/Slic3r/Model.pm @@ -386,7 +386,7 @@ sub mesh { sub update_bounding_box { my ($self) = @_; - $self->_bounding_box($self->raw_mesh->bounding_box); + $self->_bounding_box($self->mesh->bounding_box); } # this returns the bounding box of the *transformed* instances @@ -484,7 +484,7 @@ sub print_info { my $self = shift; printf "Info about %s:\n", basename($self->input_file); - printf " size: x=%.3f y=%.3f z=%.3f\n", @{$self->bounding_box->size}; + printf " size: x=%.3f y=%.3f z=%.3f\n", @{$self->raw_mesh->bounding_box->size}; if (my $stats = $self->mesh_stats) { printf " number of facets: %d\n", $stats->{number_of_facets}; printf " number of shells: %d\n", $stats->{number_of_parts};