diff --git a/src/kiri-mode/cam/topo4.js b/src/kiri-mode/cam/topo4.js index 8ce4938e..a0df0e50 100644 --- a/src/kiri-mode/cam/topo4.js +++ b/src/kiri-mode/cam/topo4.js @@ -268,7 +268,9 @@ class Topo4 { // get slice index corresponding with offset const ts = si + xo; // outside of slice array, skip - if (ts < 0 || ts >= slen - 1) continue; + if (ts < 0 || ts >= slen - 1) { + continue; + } const slice = oslices[ts]; const lines = slice.lines; const plen = lines.length; @@ -291,7 +293,7 @@ class Topo4 { } if (mz === -Infinity && xo === 0 && yo === 0) { // tool tip is off the model - break; + continue; } } if (mz === -Infinity) {