You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-02 16:48:55 +00:00
Merge pull request #112912 from KoBeWi/export_as_nobugs
Assign explicit ID to Export As menu
This commit is contained in:
@@ -8459,7 +8459,7 @@ EditorNode::EditorNode() {
|
|||||||
|
|
||||||
file_menu->add_separator();
|
file_menu->add_separator();
|
||||||
export_as_menu = memnew(PopupMenu);
|
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->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));
|
export_as_menu->connect("index_pressed", callable_mp(this, &EditorNode::_export_as_menu_option));
|
||||||
|
|
||||||
|
|||||||
@@ -152,6 +152,7 @@ public:
|
|||||||
SCENE_QUICK_OPEN,
|
SCENE_QUICK_OPEN,
|
||||||
SCENE_QUICK_OPEN_SCENE,
|
SCENE_QUICK_OPEN_SCENE,
|
||||||
SCENE_QUICK_OPEN_SCRIPT,
|
SCENE_QUICK_OPEN_SCRIPT,
|
||||||
|
SCENE_EXPORT_AS,
|
||||||
SCENE_UNDO,
|
SCENE_UNDO,
|
||||||
SCENE_REDO,
|
SCENE_REDO,
|
||||||
SCENE_RELOAD_SAVED_SCENE,
|
SCENE_RELOAD_SAVED_SCENE,
|
||||||
|
|||||||
Reference in New Issue
Block a user