Godot Engine – Multi-platform 2D and 3D game engine
Moved 'Batch Rename' closer to 'Rename' and fixed undercounting nodes.
Edward Chan77d26b727018
diff --git a/editor/docks/scene_tree_dock.cpp b/editor/docks/scene_tree_dock.cppindex 8af97f0e023..24c08e66259 100644--- a/editor/docks/scene_tree_dock.cpp+++ b/editor/docks/scene_tree_dock.cpp@@ -4039,7 +4039,11 @@ void SceneTreeDock::_tree_rmb(const Vector2 &p_menu_pos) {BEGIN_SECTION()if (can_rename) {menu->add_icon_shortcut(get_editor_theme_icon(SNAME("Rename")), ED_GET_SHORTCUT("scene_tree/rename"), TOOL_RENAME);+ if (full_selection.size() > 1) {+ menu->add_shortcut(ED_GET_SHORTCUT("scene_tree/batch_rename"), TOOL_BATCH_RENAME);+ }}+if (can_replace) {menu->add_icon_shortcut(get_editor_theme_icon(SNAME("Reload")), ED_GET_SHORTCUT("scene_tree/change_node_type"), TOOL_CHANGE_TYPE);}@@ -4129,12 +4133,6 @@ void SceneTreeDock::_tree_rmb(const Vector2 &p_menu_pos) {END_SECTION()}- if (profile_allow_editing && selection.size() > 1) {- //this is not a commonly used action, it makes no sense for it to be where it was nor always present.- BEGIN_SECTION()- menu->add_icon_shortcut(get_editor_theme_icon(SNAME("Rename")), ED_GET_SHORTCUT("scene_tree/batch_rename"), TOOL_BATCH_RENAME);- END_SECTION()- }BEGIN_SECTION()// Group "open_in_editor" with "show_in_file_system", if it is available.if (is_tool_scene_open_inherited_available) {