repeat header lines that contain {tool} for each extruder

This commit is contained in:
Stewart Allen 2020-11-19 10:09:38 -05:00
commit 00e2b9eb50
2 changed files with 12 additions and 1 deletions

View file

@ -145,7 +145,15 @@
}
});
}
appendSub(line);
if (line.indexOf("{tool}") > 0 && extruders.length > 1) {
for (let i=0; i<extruders.length; i++) {
subst.tool = i;
appendSub(line);
}
subst.tool = 0;
} else {
appendSub(line);
}
}
function dwell(ms) {