From 66adb05ad980f05b39869a234ccef3107d686855 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 29 Sep 2015 16:48:28 -0300 Subject: [PATCH] sl2/slicer.pl: use same Z offset calculation as slicer.py Else, we don't mill into the workpiece but into its support. --- sl2/slicer.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sl2/slicer.pl b/sl2/slicer.pl index 808fe4c..8be80a8 100755 --- a/sl2/slicer.pl +++ b/sl2/slicer.pl @@ -117,7 +117,7 @@ $height = $zmax - $zmin unless defined $height; # align with bottom (zmin == 0), z_pos = height - zoff -$z_off = -$zmin - $height; +$z_off = -$zmin; $z_pos = $height + $zmin;