!2533 修复:含有复合实体画门板报错问题

pull/2540/head
林三 9 months ago committed by ChenX
parent 3f7c56b4cc
commit cc17416267

@ -695,7 +695,10 @@ export class DrawDoorTool
}
else if (otherEnt instanceof HardwareCompositeEntity) //层板复合实体 铰链偏移
{
//不是铰链或者把手时跳过
if (!(isHinge || isHandle)) continue;
//是把手时 不是门板也跳过
if (isHandle && !isDoor) continue;
if (!IsBoxAndEntitysIntersect([otherEnt], [ironware], ZNormal, isDoor)) continue;
if (isDoor)
@ -709,6 +712,10 @@ export class DrawDoorTool
otherEnt.RelevanceHandle.push(ironware.Id);
continue;
}
//把手不参与碰撞偏移
if (isHandle) continue;
let hingeTr = ironware.Template.Object as TemplateRecord;//铰链模块
let hingeSpaceTr = hingeTr.Parent.Object as TemplateRecord;//铰链空间
let ironSize = ironBox.getSize(new Vector3);

Loading…
Cancel
Save