diff --git a/src/DatabaseServices/Board.ts b/src/DatabaseServices/Board.ts index 3ea263edf..b59ab48d1 100644 --- a/src/DatabaseServices/Board.ts +++ b/src/DatabaseServices/Board.ts @@ -130,8 +130,7 @@ export class Board extends Entity spliteWidth: "", spliteThickness: "" } - let roMat = board.RotateMat - board.ApplyMatrix(roMat); + board.ApplyMatrix(board.RotateMat); board.m_SpecOCS.identity(); // board.ColorIndex = boardType + 1; return board; @@ -536,7 +535,7 @@ export class Board extends Entity for (let m of this.m_BoardModeling) { let tmpPts = isGrip ? m.shape.GetGripPoints() : m.shape.GetStretchPoints(); - if (m.dir === 1) + if (m.dir === FaceDirection.Back) { tmpPts = tmpPts.map(p => p.add(new Vector3(0, 0, -this.m_Thickness + m.thickness))); } @@ -712,7 +711,7 @@ export class Board extends Entity let shapeZ = m.shape.Outline.Curve.Position.z; if (this.m_Thickness * m.thickness < 0) deleteModel.add(m); - else if (m.dir === 0) + else if (m.dir === FaceDirection.Front) { if (shapeZ < 0 || shapeZ > m.thickness) deleteModel.add(m);