add support for entire part loop range (0-0)
This commit is contained in:
parent
d6132fd652
commit
2bc9951849
1 changed files with 9 additions and 1 deletions
|
|
@ -86,7 +86,11 @@
|
|||
loops = loops.split(',').map(range => {
|
||||
return range.split('-').map(v => parseInt(v));
|
||||
}).filter(a => a.length > 1).map(a => {
|
||||
return { start:a[0], end:a[1], iter:a[2] >= 0 ? a[2] : 1}
|
||||
return {
|
||||
start: a[0],
|
||||
end: a[1] ? a[1] + 1 : Infinity,
|
||||
iter: a[2] >= 0 ? a[2] : 1
|
||||
}
|
||||
});
|
||||
}
|
||||
if (!isBelt || (loops && loops.length < 1)) {
|
||||
|
|
@ -420,6 +424,10 @@
|
|||
layer++;
|
||||
}
|
||||
|
||||
if (inLoop) {
|
||||
append(`M808`);
|
||||
}
|
||||
|
||||
subst.time = UTIL.round(time,2);
|
||||
subst.material = UTIL.round(emitted,2);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue