add FDM layer retraction as a range option
This commit is contained in:
parent
54eafc4144
commit
d1d778775c
4 changed files with 15 additions and 26 deletions
|
|
@ -76,6 +76,7 @@ FDM.init = function(kiri, api) {
|
|||
"outputRetractDist": LANG.ad_rdst_s,
|
||||
"outputRetractSpeed": LANG.outputRetractSpeed,
|
||||
"outputRetractDwell": LANG.ad_rdwl_s,
|
||||
"outputLayerRetract": LANG.ad_lret_s
|
||||
};
|
||||
|
||||
for (let key of Object.keys(rangeVars)) {
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ FDM.prepare = function(widgets, settings, update) {
|
|||
|
||||
let { device, process, controller, bounds, mode } = settings,
|
||||
{ sliceHeight, firstSliceHeight, firstLayerRate } = process,
|
||||
{ outputSeekrate, outputLayerRetract, outputDraftShield, outputPurgeTower } = process,
|
||||
{ outputSeekrate, outputDraftShield, outputPurgeTower } = process,
|
||||
{ bedWidth, bedDepth, filamentSource } = device,
|
||||
{ lineType, danger } = controller,
|
||||
printPoint = newPoint(0,0,0),
|
||||
|
|
@ -588,7 +588,7 @@ FDM.prepare = function(widgets, settings, update) {
|
|||
lastPoly = slice.lastPoly;
|
||||
lastLayer = layerout;
|
||||
|
||||
if (outputLayerRetract && layerout.length) {
|
||||
if (params.outputLayerRetract && layerout.length) {
|
||||
layerout.last().retract = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue