prevent empty slices that were culled in the past

This commit is contained in:
Stewart Allen 2020-04-11 09:26:42 -04:00
commit 104f6c85e3
2 changed files with 2 additions and 1 deletions

View file

@ -979,7 +979,7 @@ var gs_kiri_cam = exports;
}
// horizontal slices for rough/finish
doSlicing(widget, {height: sliceDepth, cam:true, zmin:proc.camZBottom}, camSlicesDone, function(update) {
doSlicing(widget, {height: sliceDepth, cam:true, zmin:proc.camZBottom, noEmpty:true}, camSlicesDone, function(update) {
onupdate(0.0 + update * 0.25, "slicing");
});

View file

@ -472,6 +472,7 @@ var gs_kiri_slicer = exports;
// allow empty slices in CAM swap mode (for topos w/ gaps)
// if (lines.length == 0 && !(options.swapX || options.swapY)) return;
if (lines.length == 0 && options.noEmpty) return;
slice.height = height;
slice.index = slices.length;