From 806d21885c33e59c210c88180f487e31290037d2 Mon Sep 17 00:00:00 2001 From: ChenX Date: Thu, 11 Jan 2024 14:55:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=E6=9C=AA=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E6=9D=BF=E6=8B=86=E5=8D=95=E6=97=B6=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Add-on/CheckHoles.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Add-on/CheckHoles.ts b/src/Add-on/CheckHoles.ts index ec9e2453b..ec2e3e63c 100644 --- a/src/Add-on/CheckHoles.ts +++ b/src/Add-on/CheckHoles.ts @@ -45,6 +45,8 @@ export class CheckHoles implements Command //干涉检查 export async function InterferenceCheck(brs: Board[]) { + if (!brs.length) return []; + const drillTool = DrawDrillingTool.GetInstance(); let b2boxMap = new Map();