Fix for rectilinear infill failing in plates with new caching

This commit is contained in:
Alessandro Ranellucci 2013-04-26 17:14:30 +02:00
parent 0118c7257f
commit 6842114d3d

View file

@ -30,7 +30,8 @@ sub fill_surface {
if (!$self->cache->{$cache_id}) {
# compute bounding box
my $bounding_box = $self->bounding_box;
my $bounding_box = [ @{$self->bounding_box} ]; # clone
$bounding_box->[$_] = 0 for X1, Y1;
{
my $bb_expolygon = Slic3r::ExPolygon->new(Slic3r::Polygon->new_from_bounding_box($bounding_box));
$self->rotate_points($bb_expolygon, $rotate_vector);