clear ranges on widget delete. add debug indices for slicing

This commit is contained in:
Stewart Allen 2021-06-18 13:36:47 -04:00
commit e84a4f4251
3 changed files with 18 additions and 2 deletions

View file

@ -239,7 +239,10 @@
zOrdered.sort(function(a,b) { return a - b});
}
if (useFlats) {
if (options.indices) {
zIndexes = options.indices;
zHeights = zIndexes.map(v => options.height);
} else if (useFlats) {
zIndexes.appendAll(zOrdered);
} else if (options.single) {
// usually for laser single slice