warn when z bottom is below z thru

This commit is contained in:
Stewart Allen 2025-12-11 22:53:20 -05:00
commit cca1ecd148

View file

@ -330,6 +330,9 @@ export async function cam_slice(settings, widget, onupdate, ondone) {
workover.bottom_z = isIndexed ? valz.ov_botz : bottom_stock + valz.ov_botz;
workover.bottom_cut = Math.max(workover.bottom_z, -zThru);
}
if (-zThru > workover.bottom_z) {
alert("Z Thru should be below Z Bottom");
}
if (valz.tool) {
tool = new Tool(settings, valz.tool);
}