prevent widget from having an assigned extruder > selected device extruder count
This commit is contained in:
parent
059dbced58
commit
25e9546c1c
1 changed files with 2 additions and 1 deletions
|
|
@ -106,7 +106,8 @@ FDM.slice = function(settings, widget, onupdate, ondone) {
|
|||
solidLayers = process.sliceSolidLayers || 0,
|
||||
vaseMode = process.sliceFillType === 'vase' && !isSynth,
|
||||
metadata = widget.anno,
|
||||
extruder = parseInt(isSynth ? process.sliceSupportNozzle : metadata.extruder || 0),
|
||||
maxtruder = Math.max(0, device.extruders.length - 1),
|
||||
extruder = Math.min(maxtruder, parseInt(isSynth ? process.sliceSupportNozzle : metadata.extruder || 0)),
|
||||
sliceHeight = process.sliceHeight,
|
||||
sliceHeightBase = (isBelt ? sliceHeight : process.firstSliceHeight) || sliceHeight,
|
||||
lineWidth = process.sliceLineWidth || device.extruders[extruder].extNozzle,
|
||||
|
|
|
|||
Loading…
Reference in a new issue