fix output extruder type for supports

This commit is contained in:
Stewart Allen 2025-02-21 17:24:24 -05:00
commit 52a04c4a62
2 changed files with 2 additions and 2 deletions

View file

@ -805,7 +805,7 @@ function slicePrintPath(print, slice, startPoint, offset, output, opt = {}) {
let preout = [], let preout = [],
process = opt.params || settings.process, process = opt.params || settings.process,
originCenter = device.originCenter || bedRound, originCenter = device.originCenter || bedRound,
extruder = slice.extruder || 0, extruder = parseInt(slice.extruder || 0),
nozzleSize = process.sliceLineWidth || device.extruders[extruder].extNozzle, nozzleSize = process.sliceLineWidth || device.extruders[extruder].extNozzle,
firstLayer = (opt.first || false) && !opt.support, firstLayer = (opt.first || false) && !opt.support,
thinWall = nozzleSize * (opt.thinWall || 1.75), thinWall = nozzleSize * (opt.thinWall || 1.75),

View file

@ -199,7 +199,7 @@ function updateSettingsFromFields(setrec, uirec = api.ui, changes) {
if (uie.selectedIndex >= 0) { if (uie.selectedIndex >= 0) {
nval = uie.options[uie.selectedIndex].value; nval = uie.options[uie.selectedIndex].value;
let src = uie.parentNode.getAttribute('source'); let src = uie.parentNode.getAttribute('source');
if (src === 'tools') { if (src === 'tools' || src == 'extruders') {
nval = parseInt(nval); nval = parseInt(nval);
} }
} else { } else {