修正错误的判断
This commit is contained in:
1 parent
28f91d7904
commit
83207410ad
2 files changed
+2
-2
No files matched your search
Vendored
+1
-1
@@ -80,7 +80,7 @@ function createBoard(boardData) {
|
||||
boardMat.setPosition(pBase);
|
||||
matInv.getInverse(boardMat, true);
|
||||
}
|
||||
if (boardPts || boardPts.length === 0)
|
||||
if (boardPts && boardPts.length !== 0)
|
||||
for (let i = 0; i < boardPts.length; i++) {
|
||||
let pt = getVec(boardPts[i]);
|
||||
if (pt.z !== undefined)
|
||||
|
||||
+1
-1
@@ -101,7 +101,7 @@ export function createBoard(boardData: object)
|
||||
matInv.getInverse(boardMat, true);
|
||||
}
|
||||
|
||||
if (boardPts || boardPts.length === 0)
|
||||
if (boardPts && boardPts.length !== 0)
|
||||
for (let i = 0; i < boardPts.length; i++)
|
||||
{
|
||||
let pt = getVec(boardPts[i]);
|
||||
|
||||
Reference in new issue
Block a user