From 306fee58f7d03373d7f59eccf0bd1b9bf70bcdc2 Mon Sep 17 00:00:00 2001 From: ChenX Date: Thu, 21 Oct 2021 20:39:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96:=E7=BB=98=E5=88=B6=E9=97=A8?= =?UTF-8?q?=E6=9D=BF=E6=97=B6=E5=9B=A0=E4=B8=BA=E9=93=B0=E9=93=BE=E5=81=8F?= =?UTF-8?q?=E7=A7=BB=E5=AF=BC=E8=87=B4=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Add-on/DrawBoard/DrawDoorDrawer/DrawDoorDrawerTool.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Add-on/DrawBoard/DrawDoorDrawer/DrawDoorDrawerTool.ts b/src/Add-on/DrawBoard/DrawDoorDrawer/DrawDoorDrawerTool.ts index 4db95a7e1..fc234d20b 100644 --- a/src/Add-on/DrawBoard/DrawDoorDrawer/DrawDoorDrawerTool.ts +++ b/src/Add-on/DrawBoard/DrawDoorDrawer/DrawDoorDrawerTool.ts @@ -555,8 +555,10 @@ export class DrawDoorTool en.RelevanceBoards.push(br.Id); } } - else if (board instanceof HardwareCompositeEntity) //复合实体 + else if (board instanceof HardwareCompositeEntity) //复合实体 铰链偏移 { + if (!IsHinge(en)) continue; + let brBox = board.BoundingBox; if (!brBox.intersectsBox(enBox)) continue;