From f67b863e6436d181c8351f025aa82fac8111902a Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Wed, 23 Jul 2014 13:06:22 +0200 Subject: [PATCH] Fixed minor regression in cut dialog --- lib/Slic3r/GUI/PreviewCanvas.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/PreviewCanvas.pm b/lib/Slic3r/GUI/PreviewCanvas.pm index 43f396b5a..cbc6cbbe4 100644 --- a/lib/Slic3r/GUI/PreviewCanvas.pm +++ b/lib/Slic3r/GUI/PreviewCanvas.pm @@ -203,7 +203,7 @@ sub SetCuttingPlane { my @verts = (); foreach my $volume (@{$self->volumes}) { foreach my $volume (@{$self->volumes}) { - my $expolygons = $volume->{mesh}->slice([ $z ])->[0]; + my $expolygons = $volume->{mesh}->slice([ $z + $volume->{z_min} ])->[0]; $expolygons = offset_ex([ map @$_, @$expolygons ], scale 0.1); foreach my $line (map @{$_->lines}, map @$_, @$expolygons) {