fix fan setting for empty bridge layers

This commit is contained in:
Stewart Allen 2025-10-14 21:00:00 -04:00
commit 183c110ed9

View file

@ -1617,7 +1617,7 @@ function slicePrintPath(print, slice, startPoint, offset, output, opt = {}) {
print.addPrintPoints(preout, output);
// bridge layer fan change
if (slice.isBridgeLayer) {
if (preout.length && slice.isBridgeLayer) {
preout[0].fan = Math.round(fanSpeed / 3);
preout.peek().fan = fanSpeed;
}