fix errant break when tool tip is off the model
This commit is contained in:
parent
1b28d5e6ed
commit
4c05f6de33
1 changed files with 4 additions and 2 deletions
|
|
@ -268,7 +268,9 @@ class Topo4 {
|
||||||
// get slice index corresponding with offset
|
// get slice index corresponding with offset
|
||||||
const ts = si + xo;
|
const ts = si + xo;
|
||||||
// outside of slice array, skip
|
// outside of slice array, skip
|
||||||
if (ts < 0 || ts >= slen - 1) continue;
|
if (ts < 0 || ts >= slen - 1) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
const slice = oslices[ts];
|
const slice = oslices[ts];
|
||||||
const lines = slice.lines;
|
const lines = slice.lines;
|
||||||
const plen = lines.length;
|
const plen = lines.length;
|
||||||
|
|
@ -291,7 +293,7 @@ class Topo4 {
|
||||||
}
|
}
|
||||||
if (mz === -Infinity && xo === 0 && yo === 0) {
|
if (mz === -Infinity && xo === 0 && yo === 0) {
|
||||||
// tool tip is off the model
|
// tool tip is off the model
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (mz === -Infinity) {
|
if (mz === -Infinity) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue