diff --git a/lib/Slic3r/Test/SectionCut.pm b/lib/Slic3r/Test/SectionCut.pm index 3e1418bc..6848882a 100644 --- a/lib/Slic3r/Test/SectionCut.pm +++ b/lib/Slic3r/Test/SectionCut.pm @@ -121,7 +121,8 @@ sub _plot { } } else { push @rectangles, map { - my $height = $path->height // $layer->height; + my $height = $path->height; + $height = $layer->height if $height == -1; { 'x' => $self->scale * unscale $_->[A][X], 'y' => $self->scale * $self->_y($layer->print_z),