Fix preview after rotation in plater

This commit is contained in:
Alessandro Ranellucci 2012-11-19 17:39:16 +01:00
parent 99c942b5ea
commit 5678cd562c
3 changed files with 19 additions and 14 deletions

View file

@ -126,9 +126,7 @@ sub bounding_box {
sub size {
my $self = shift;
my @extents = $self->bounding_box;
return [$extents[X2] - $extents[X1], $extents[Y2] - $extents[Y1]];
return [ Slic3r::Geometry::size_2D($self) ];
}
sub align_to_origin {