!2752 修复:画门使用带文字标注的模块错误问题

pull/2747/MERGE
林三 5 months ago
parent 6dba8f7617
commit 75f081727c

@ -629,7 +629,8 @@ export class DrawDoorTool
if (isHinge)
{
//找到铰链所在的门板 使用真实空间
let parentDoor = doors.find((door) => IsBoxAndEntitysIntersect([door], [ironware], new Vector3, true));
let parentDoor = doors.find((door) => (door instanceof Board || door instanceof HardwareCompositeEntity) &&
IsBoxAndEntitysIntersect([door], [ironware], new Vector3, true));
if (parentDoor)
{
doorSpaceSize = parentDoor.BoundingBox.getSize(new Vector3);

Loading…
Cancel
Save