refactor platform grid and axis labels. checkpoint belt updates

This commit is contained in:
Stewart Allen 2021-01-08 21:56:46 -05:00
commit bab96a1faa
5 changed files with 222 additions and 163 deletions

View file

@ -267,13 +267,13 @@
}, "render");
}
// if (isBelt) {
// let bounds = BASE.newBounds();
// for (let top of slices[0].tops) {
// bounds.merge(top.poly.bounds);
// }
// console.log({z_anchor_bounds: bounds});
// }
if (isBelt) {
let bounds = BASE.newBounds();
for (let top of slices[0].tops) {
bounds.merge(top.poly.bounds);
}
widget.belt_offset = bounds.miny;
}
// report slicing complete
ondone();