fix cnc zip output when repeating the same op with different tools

This commit is contained in:
Stewart Allen 2022-08-07 17:36:38 -04:00
commit 7690816a7c

View file

@ -311,7 +311,7 @@ CAM.export = function(print, online) {
// emit all points in layer/point order // emit all points in layer/point order
for (let layerout of print.output) { for (let layerout of print.output) {
if (mode !== layerout.mode) { if (mode !== layerout.mode || consts.tool !== layerout[0].tool) {
if (mode && !stripComments) { if (mode && !stripComments) {
append("; ending " + mode + " op after " + Math.round(time/60) + " seconds"); append("; ending " + mode + " op after " + Math.round(time/60) + " seconds");
} }