变更:纹路反应器对创建的实体进行纹路切换

pull/1033/MERGE
ChenX 4 years ago
parent 92823e9fd0
commit 491b693f25

@ -10,9 +10,10 @@ export class BoardLinesReactor
app.CommandReactor.OnCommandEnd((cmdName: string, changeObjects: CADObject[], createObjects: CADObject[]) => app.CommandReactor.OnCommandEnd((cmdName: string, changeObjects: CADObject[], createObjects: CADObject[]) =>
{ {
for (let ent of changeObjects) for (let ent of changeObjects)
{
this.AutoChangeBoardLines(ent); this.AutoChangeBoardLines(ent);
}
for (let ent of createObjects)
this.AutoChangeBoardLines(ent);
}); });
} }
@ -32,6 +33,8 @@ export class BoardLinesReactor
} }
} }
app.Editor.Prompt(`${ent.BoardProcessOption.boardName}超长,无法自动翻转!长:${ent.Height},宽:${ent.Width}.`); app.Editor.Prompt(`${ent.BoardProcessOption.boardName}超长,无法自动翻转!长:${ent.Height},宽:${ent.Width}.`);
if (ent.BoardProcessOption.lines !== LinesType.CanReversal)
ent.BoardProcessOption.lines = ent.Height > ent.Width ? LinesType.Positive : LinesType.Reverse;
} }
} }
} }

Loading…
Cancel
Save