Bugfix: error on Honeycomb infill
This commit is contained in:
parent
9a397ed869
commit
84d9368bf6
@ -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([
|
||||
|
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user