safety check on bounds
This commit is contained in:
parent
832927ca29
commit
2c3d31e431
1 changed files with 1 additions and 1 deletions
|
|
@ -361,7 +361,7 @@ var gs_kiri_print = exports;
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkBisect(p1, p2, bounds) {
|
function checkBisect(p1, p2, bounds) {
|
||||||
if (p1.distTo2D(p2) < minSeek) return;
|
if (!bounds || p1.distTo2D(p2) < minSeek) return;
|
||||||
var more = true;
|
var more = true;
|
||||||
bounds.forEach(function(bp) {
|
bounds.forEach(function(bp) {
|
||||||
if (!more) return;
|
if (!more) return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue