diff --git a/src/Common/CommandNames.ts b/src/Common/CommandNames.ts index c61f04635..5b9ebc994 100644 --- a/src/Common/CommandNames.ts +++ b/src/Common/CommandNames.ts @@ -277,6 +277,6 @@ export enum CommandNames ApplyMtl = "APPLYMTL",//应用材质 封边属性编辑 = "封边属性编辑", 排钻属性编辑 = "排钻属性编辑", - - Replace = "重新放置模型" + Replace = "重新放置模型", + Down = "DOWN", } diff --git a/src/Common/HotKeyList.ts b/src/Common/HotKeyList.ts index 63be7483a..da20a3c88 100644 --- a/src/Common/HotKeyList.ts +++ b/src/Common/HotKeyList.ts @@ -37,5 +37,6 @@ export enum HotkeyList AS = "Alt+S", AF = "Alt+F", D = "Delete", - F1 = "F1" + END = "End", + F1 = "F1", } diff --git a/src/Editor/CommandRegister.ts b/src/Editor/CommandRegister.ts index 2d30b4926..f7afaa1eb 100644 --- a/src/Editor/CommandRegister.ts +++ b/src/Editor/CommandRegister.ts @@ -145,6 +145,7 @@ import { Fbx } from "../Add-on/loadfbx"; import { LookOverBoardInfos } from "../Add-on/LookOverBoardInfos/LookOverBoardInfos"; import { MirrorCommand } from "../Add-on/Mirror"; 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 { Command_M0, Command_PackageMove } from "../Add-on/MoveToWCS0"; 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.ParseBoardName, new Command_ParseBoardName()); + + commandMachine.RegisterCommand(CommandNames.Down, new Command_Cmd_Down()); } export async function LimitCommand() diff --git a/src/UI/Components/CommandPanel/CommandList.ts b/src/UI/Components/CommandPanel/CommandList.ts index b96f320d5..0a6c7d2d2 100644 --- a/src/UI/Components/CommandPanel/CommandList.ts +++ b/src/UI/Components/CommandPanel/CommandList.ts @@ -2026,6 +2026,15 @@ export const CommandList: ICommand[] = [ chName: "单柜效果图", chDes: "导出单个柜子效果图", }, + { + typeId: "util", + defaultCustom: CommandNames.Down, + command: CommandNames.Down, + type: "工具", + chName: "物体落地", + chDes: "物体落地", + defaultHotkeys: HotkeyList.END, + }, { typeId: "util", link: `#`,