allow support gap layers in belt prints

This commit is contained in:
Stewart Allen 2022-10-15 22:45:23 -04:00
commit 2496b2c278
2 changed files with 2 additions and 2 deletions

View file

@ -404,7 +404,7 @@ FDM.slice = function(settings, widget, onupdate, ondone) {
// for synth support widgets, clip/offset to other widgets in group
if (isSynth) {
for (let slice of slices) {
let gap = sliceHeight * (isBelt ? 0 : process.sliceSupportGap);
let gap = sliceHeight * process.sliceSupportGap;
// clip tops to other widgets in group
let tops = slice.topPolys();
for (let peer of widget.group) {

View file

@ -1857,7 +1857,7 @@ gapp.register("kiri.init", [], (root, exports) => {
fdmSep: uc.newBlank({class:"pop-sep", modes:FDM}),
sliceSupportSize: uc.newInput(LANG.sp_size_s, {title:LANG.sp_size_l, bound:uc.bound(1.0,200.0), convert:uc.toFloat, modes:FDM}),
sliceSupportOffset: uc.newInput(LANG.sp_offs_s, {title:LANG.sp_offs_l, bound:uc.bound(0.0,200.0), convert:uc.toFloat, modes:FDM}),
sliceSupportGap: uc.newInput(LANG.sp_gaps_s, {title:LANG.sp_gaps_l, bound:uc.bound(0,5), convert:uc.toInt, modes:FDM, show:isNotBelt}),
sliceSupportGap: uc.newInput(LANG.sp_gaps_s, {title:LANG.sp_gaps_l, bound:uc.bound(0,5), convert:uc.toInt, modes:FDM}),
fdmSep: uc.newBlank({class:"pop-sep", modes:FDM}),
sliceSupportArea: uc.newInput(LANG.sp_area_s, {title:LANG.sp_area_l, bound:uc.bound(0.0,200.0), convert:uc.toFloat, modes:FDM}),
sliceSupportExtra: uc.newInput(LANG.sp_xpnd_s, {title:LANG.sp_xpnd_l, bound:uc.bound(0.0,200.0), convert:uc.toFloat, modes:FDM}),