修复:左右侧板存在内缩时,在户型里绘制错误 fix #I5PWEY

pull/1990/MERGE
ChenX 2 years ago
parent bc9a2dac87
commit 2fb87f0fa4

@ -52,6 +52,9 @@ export class DrawLeftRight implements Command
let rightBoard = Board.CreateBoard(height, width - data.rightShrink, thickness, BoardType.Vertical);
rightBoard.Position = new Vector3(spacing - thickness, data.rightShrink);
leftBoard.SpaceCSNoClone.setPosition(0, 0, 0);
rightBoard.SpaceCSNoClone.setPosition(0, 0, 0);
return [leftBoard, rightBoard];
}
private InsertByPoint = async () =>
@ -99,14 +102,16 @@ export class DrawLeftRight implements Command
{
if (newWidth < width)
{
for (let br of brs) br.Width = newWidth;
brs[0].Width = newWidth - data.leftShrink;
brs[1].Width = newWidth - data.rightShrink;
parse.PlaceEntity.Width = newWidth;
return newWidth;
}
else
{
for (let br of brs) br.Width = width;
brs[0].Width = width - data.leftShrink;
brs[1].Width = width - data.rightShrink;
parse.PlaceEntity.Width = width;
return width;

Loading…
Cancel
Save