fix floating point rounding mismatch causing flats to be missed for clearing

This commit is contained in:
Stewart Allen 2021-04-12 10:39:49 -04:00
commit 2351ddca56

View file

@ -159,7 +159,7 @@
indices.shift();
if (op.flats) {
let flats = Object.keys(slicer.zFlat)
.map(v => parseFloat(v).round(4))
.map(v => parseFloat(v).round(5))
.filter(v => v >= zBottom);
flats.forEach(v => {
if (!indices.contains(v)) {