fix slice timing. fix slice ambiguity on edge lines
This commit is contained in:
parent
45b8ac8c2d
commit
3508dffdf2
6 changed files with 17 additions and 10 deletions
|
|
@ -754,7 +754,7 @@
|
|||
let segtimes = {},
|
||||
segNumber = 0,
|
||||
errored = false,
|
||||
startTime,
|
||||
startTime = Date.now(),
|
||||
lastMsg,
|
||||
camOrLaser = mode === 'CAM' || mode === 'LASER',
|
||||
stack = STACKS.create(widget.id, widget.mesh);
|
||||
|
|
@ -802,7 +802,7 @@
|
|||
alert2(error);
|
||||
}
|
||||
}, function(update, msg) {
|
||||
if (msg !== lastMsg) {
|
||||
if (msg && msg !== lastMsg) {
|
||||
let mark = Date.now();
|
||||
if (lastMsg) {
|
||||
segtimes[`${segNumber++}_${lastMsg}`] = mark - startTime;
|
||||
|
|
@ -862,7 +862,7 @@
|
|||
if (layer) {
|
||||
output.push(KIRI.codec.decode(layer));
|
||||
}
|
||||
if (message !== lastMsg) {
|
||||
if (message && message !== lastMsg) {
|
||||
let mark = Date.now();
|
||||
if (lastMsg) {
|
||||
segtimes[`${segNumber++}_${lastMsg}`] = mark - startTime;
|
||||
|
|
|
|||
Loading…
Reference in a new issue