Skip to content

Commit 8cb98cc

Browse files
committed
Merge pull request godotengine#112912 from KoBeWi/export_as_nobugs
Assign explicit ID to Export As menu
2 parents b59cded + 84f842f commit 8cb98cc

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
@@ -152,6 +152,7 @@ class EditorNode : public Node {
152152
SCENE_QUICK_OPEN,
153153
SCENE_QUICK_OPEN_SCENE,
154154
SCENE_QUICK_OPEN_SCRIPT,
155+
SCENE_EXPORT_AS,
155156
SCENE_UNDO,
156157
SCENE_REDO,
157158
SCENE_RELOAD_SAVED_SCENE,

0 commit comments

Comments
 (0)