Bugfix: error on Honeycomb infill

This commit is contained in:
Alessandro Ranellucci 2012-04-30 17:55:32 +02:00
parent 9a397ed869
commit 84d9368bf6
2 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,7 @@ sub fill_surface {
# adjust actual bounding box to the nearest multiple of our hex pattern
# and align it so that it matches across layers
my $print_bounding_box = $self->print->bounding_box;
my $print_bounding_box = [ $self->print->bounding_box ];
my $bounding_box = [ 0, 0, $print_bounding_box->[X2], $print_bounding_box->[Y2] ];
{
my $bb_polygon = Slic3r::Polygon->new([

View File

@ -434,6 +434,7 @@ sub repaint {
$dc->SetPen(Wx::wxBLACK_PEN);
@{$parent->{object_previews}} = ();
for my $obj_idx (0 .. $#{$print->objects}) {
next unless $parent->{thumbnails}[$obj_idx];
for my $copy_idx (0 .. $#{$print->copies->[$obj_idx]}) {
my $copy = $print->copies->[$obj_idx][$copy_idx];
push @{$parent->{object_previews}}, [ $obj_idx, $copy_idx, $parent->{thumbnails}[$obj_idx]->clone ];