Skip to content

Commit 84f842f

Browse files
committed
Assign explicit ID to Export As menu
1 parent 3f5b871 commit 84f842f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

editor/editor_node.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8459,7 +8459,7 @@ EditorNode::EditorNode() {
84598459

84608460
file_menu->add_separator();
84618461
export_as_menu = memnew(PopupMenu);
8462-
file_menu->add_submenu_node_item(TTRC("Export As..."), export_as_menu);
8462+
file_menu->add_submenu_node_item(TTRC("Export As..."), export_as_menu, SCENE_EXPORT_AS);
84638463
export_as_menu->add_shortcut(ED_SHORTCUT("editor/export_as_mesh_library", TTRC("MeshLibrary...")), FILE_EXPORT_MESH_LIBRARY);
84648464
export_as_menu->connect("index_pressed", callable_mp(this, &EditorNode::_export_as_menu_option));
84658465

editor/editor_node.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ class EditorNode : public Node {
153153
SCENE_QUICK_OPEN,
154154
SCENE_QUICK_OPEN_SCENE,
155155
SCENE_QUICK_OPEN_SCRIPT,
156+
SCENE_EXPORT_AS,
156157
SCENE_UNDO,
157158
SCENE_REDO,
158159
SCENE_RELOAD_SAVED_SCENE,

0 commit comments

Comments
 (0)