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,
alignTop: true,
units: "mm",
exportOcto: true,
exportOcto: false,
exportGhost: false,
exportLocal: false
exportLocal: true
},
// for passing temporary slice hints (topo currently)
synth: {},

View file

@ -1806,7 +1806,7 @@
mode = 0,
point,
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,
runbox = {
max: { x:-Infinity, y:-Infinity, z:-Infinity},