对于空的pts 数组也支持
This commit is contained in:
@@ -101,7 +101,7 @@ export function createBoard(boardData: object)
|
||||
matInv.getInverse(boardMat, true);
|
||||
}
|
||||
|
||||
if (boardPts)
|
||||
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