!2474 修复:右键隐藏抽屉会隐藏多余排钻问题

pull/2470/MERGE
林三 11 months ago committed by ChenX
parent c5900ad670
commit 776104bb15

@ -236,7 +236,7 @@ export class Command_SwitchDoorOrDrawer implements Command
arrayRemoveIf(cylinderHoles, (cylinderHole: Entity) =>
{
let cylinderHoleBox = cylinderHole.BoundingBox;
if (entBox.intersectsBox(cylinderHoleBox, 10))
if (entBox.intersectsBox(cylinderHoleBox))
{
entitys.push(cylinderHole);
return true;
@ -247,7 +247,7 @@ export class Command_SwitchDoorOrDrawer implements Command
arrayRemoveIf(lattices, (lattice: Entity) =>
{
let latticeBox = lattice.BoundingBox;
if (entBox.intersectsBox(latticeBox, 10))
if (entBox.intersectsBox(latticeBox))
{
entitys.push(lattice);
return true;

Loading…
Cancel
Save