fix hasStock check. default to GridLocal for OctoPrint

This commit is contained in:
Stewart Allen 2020-07-22 13:13:00 -04:00
commit d2bac2f858
2 changed files with 3 additions and 3 deletions

View file

@ -603,9 +603,9 @@
autoLayout: true, autoLayout: true,
alignTop: true, alignTop: true,
units: "mm", units: "mm",
exportOcto: true, exportOcto: false,
exportGhost: false, exportGhost: false,
exportLocal: false exportLocal: true
}, },
// for passing temporary slice hints (topo currently) // for passing temporary slice hints (topo currently)
synth: {}, synth: {},

View file

@ -1806,7 +1806,7 @@
mode = 0, mode = 0,
point, point,
points = 0, points = 0,
hasStock = spro.camStockZ && spro.camStockX && spro.camStockY, hasStock = spro.camStockOffset || (spro.camStockZ && spro.camStockX && spro.camStockY),
zmax = hasStock ? settings.stock.z : bounds.max.z, zmax = hasStock ? settings.stock.z : bounds.max.z,
runbox = { runbox = {
max: { x:-Infinity, y:-Infinity, z:-Infinity}, max: { x:-Infinity, y:-Infinity, z:-Infinity},