!1732 功能:增加down命令

pull/1739/head
林三 3 years ago committed by ChenX
parent 05d3306ecb
commit 24997e1d87

@ -277,6 +277,6 @@ export enum CommandNames
ApplyMtl = "APPLYMTL",//应用材质 ApplyMtl = "APPLYMTL",//应用材质
= "封边属性编辑", = "封边属性编辑",
= "排钻属性编辑", = "排钻属性编辑",
Replace = "重新放置模型",
Replace = "重新放置模型" Down = "DOWN",
} }

@ -37,5 +37,6 @@ export enum HotkeyList
AS = "Alt+S", AS = "Alt+S",
AF = "Alt+F", AF = "Alt+F",
D = "Delete", D = "Delete",
F1 = "F1" END = "End",
F1 = "F1",
} }

@ -145,6 +145,7 @@ import { Fbx } from "../Add-on/loadfbx";
import { LookOverBoardInfos } from "../Add-on/LookOverBoardInfos/LookOverBoardInfos"; import { LookOverBoardInfos } from "../Add-on/LookOverBoardInfos/LookOverBoardInfos";
import { MirrorCommand } from "../Add-on/Mirror"; import { MirrorCommand } from "../Add-on/Mirror";
import { Command_Move } from "../Add-on/Move"; import { Command_Move } from "../Add-on/Move";
import { Command_Cmd_Down } from "../Add-on/Move/Cmd_Down";
import { MoveX as Command_MoveX } from "../Add-on/MoveAxis"; import { MoveX as Command_MoveX } from "../Add-on/MoveAxis";
import { Command_M0, Command_PackageMove } from "../Add-on/MoveToWCS0"; import { Command_M0, Command_PackageMove } from "../Add-on/MoveToWCS0";
import { Command_ExportObj } from "../Add-on/Obj/Command_ExportObj"; import { Command_ExportObj } from "../Add-on/Obj/Command_ExportObj";
@ -707,6 +708,8 @@ export function registerCommand()
commandMachine.RegisterCommand(CommandNames.ShowHSPanel, new ShowHideSelectPanel()); commandMachine.RegisterCommand(CommandNames.ShowHSPanel, new ShowHideSelectPanel());
commandMachine.RegisterCommand(CommandNames.ParseBoardName, new Command_ParseBoardName()); commandMachine.RegisterCommand(CommandNames.ParseBoardName, new Command_ParseBoardName());
commandMachine.RegisterCommand(CommandNames.Down, new Command_Cmd_Down());
} }
export async function LimitCommand() export async function LimitCommand()

@ -2026,6 +2026,15 @@ export const CommandList: ICommand[] = [
chName: "单柜效果图", chName: "单柜效果图",
chDes: "导出单个柜子效果图", chDes: "导出单个柜子效果图",
}, },
{
typeId: "util",
defaultCustom: CommandNames.Down,
command: CommandNames.Down,
type: "工具",
chName: "物体落地",
chDes: "物体落地",
defaultHotkeys: HotkeyList.END,
},
{ {
typeId: "util", typeId: "util",
link: `#`, link: `#`,

Loading…
Cancel
Save