修正板件模块轮廓应用错误

pull/473/MERGE
ChenX 5 years ago
parent 4a82d24d32
commit 403970f43b

@ -92,7 +92,7 @@ export class TemplateBoardRecord extends TemplateRecord
{ {
if (refBr) if (refBr)
{ {
nbrs[i].ContourCurve = refBr.ContourCurve; nbrs[i].ContourCurve = refBr.ContourCurve.Clone();
nbrs[i].BoardProcessOption = refBr.BoardProcessOption; nbrs[i].BoardProcessOption = refBr.BoardProcessOption;
} }
app.Database.ModelSpace.Append(nbrs[i]); app.Database.ModelSpace.Append(nbrs[i]);

@ -30,7 +30,7 @@ const KeyWordCommandMap: Map<string, string> = new Map(Object.entries({
"ESC": "ESC", "ESC": "ESC",
"WR": "EDITORWINERACK", "WR": "EDITORWINERACK",
"EBR": "EDITORBOARDTEMPLATE", "T": "EDITORBOARDTEMPLATE",
})); }));
/** /**
@ -149,10 +149,10 @@ export class ContextMenuServices implements EditorService
{ {
let temp = selects[0].Template.Object; let temp = selects[0].Template.Object;
if (temp instanceof TemplateWineRackRecord) if (temp instanceof TemplateWineRackRecord)
menuKeywords.push({ key: "WR", msg: "编辑酒格" }); menuKeywords.push({ key: "WR", msg: "编辑酒格模块" });
else if (temp instanceof TemplateBoardRecord) else if (temp instanceof TemplateBoardRecord)
{ {
menuKeywords.push({ key: "EBR", msg: "编辑板件" }); menuKeywords.push({ key: "T", msg: "编辑板件模块" });
} }
} }
} }

Loading…
Cancel
Save