From 2c1274e2d90a8d9b84c7d6ba779e72aa1f4e068c Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Tue, 17 Sep 2013 14:16:29 +0200 Subject: [PATCH] Updated/fixed SectionCut --- lib/Slic3r/Test/SectionCut.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/Test/SectionCut.pm b/lib/Slic3r/Test/SectionCut.pm index 3e1418bcd..6848882ae 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),