another fix for cnc in cli mode

This commit is contained in:
Stewart Allen 2022-01-08 14:22:23 -05:00
commit 300833ff11

View file

@ -16,7 +16,6 @@
*/ */
CAM.export = function(print, online) { CAM.export = function(print, online) {
let widget = print.widgets[0]; let widget = print.widgets[0];
if (!widget) return; if (!widget) return;
let i, let i,
@ -48,7 +47,7 @@
mode, mode,
point, point,
points = 0, points = 0,
stock = settings.stock, stock = settings.stock || { },
hasStock = spro.camStockOn && stock.x && stock.y && stock.z, hasStock = spro.camStockOn && stock.x && stock.y && stock.z,
ztOff = hasStock ? stock.z - widget.track.top : 0, ztOff = hasStock ? stock.z - widget.track.top : 0,
bounds = widget.getBoundingBox(), bounds = widget.getBoundingBox(),