fix adaptive layering first layer
This commit is contained in:
parent
a2a75dc5f7
commit
87de4ed055
3 changed files with 18 additions and 11 deletions
|
|
@ -106,10 +106,13 @@
|
|||
spro.firstSliceHeight = sliceHeight;
|
||||
}
|
||||
|
||||
const sliceMinHeight = spro.sliceAdaptive && spro.sliceMinHeight > 0 ?
|
||||
Math.min(spro.sliceMinHeight, sliceHeight) : 0;
|
||||
|
||||
if (spro.firstSliceHeight < sliceHeight) {
|
||||
DBUG.log("invalid first layer height < slice height");
|
||||
DBUG.log("reverting to slice height");
|
||||
spro.firstSliceHeight = sliceHeight;
|
||||
DBUG.log("reverting to min valid slice height");
|
||||
spro.firstSliceHeight = sliceMinHeight || sliceHeight;
|
||||
}
|
||||
|
||||
// const slicer = new KIRI.slicer2(widget.getPoints(), { });
|
||||
|
|
@ -134,9 +137,6 @@
|
|||
// } });
|
||||
// onSliceDone(slices);
|
||||
|
||||
const sliceMinHeight = spro.sliceAdaptive && spro.sliceMinHeight > 0 ?
|
||||
Math.min(spro.sliceMinHeight, sliceHeight) : 0;
|
||||
|
||||
SLICER.sliceWidget(widget, {
|
||||
height: sliceHeight,
|
||||
minHeight: sliceMinHeight,
|
||||
|
|
|
|||
Loading…
Reference in a new issue