From 84f842f2e98dde3ca4e09fed8ae30d05b8cc6aea Mon Sep 17 00:00:00 2001 From: kobewi Date: Tue, 18 Nov 2025 12:49:25 +0100 Subject: [PATCH] Assign explicit ID to Export As menu --- editor/editor_node.cpp | 2 +- editor/editor_node.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 3bfe1ea3afc..70b945fd54b 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -8459,7 +8459,7 @@ EditorNode::EditorNode() { file_menu->add_separator(); export_as_menu = memnew(PopupMenu); - file_menu->add_submenu_node_item(TTRC("Export As..."), export_as_menu); + file_menu->add_submenu_node_item(TTRC("Export As..."), export_as_menu, SCENE_EXPORT_AS); export_as_menu->add_shortcut(ED_SHORTCUT("editor/export_as_mesh_library", TTRC("MeshLibrary...")), FILE_EXPORT_MESH_LIBRARY); export_as_menu->connect("index_pressed", callable_mp(this, &EditorNode::_export_as_menu_option)); diff --git a/editor/editor_node.h b/editor/editor_node.h index 579951e6125..0f053e50031 100644 --- a/editor/editor_node.h +++ b/editor/editor_node.h @@ -153,6 +153,7 @@ public: SCENE_QUICK_OPEN, SCENE_QUICK_OPEN_SCENE, SCENE_QUICK_OPEN_SCRIPT, + SCENE_EXPORT_AS, SCENE_UNDO, SCENE_REDO, SCENE_RELOAD_SAVED_SCENE,