1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Merge pull request #108436 from AeioMuch/scroll_scene_tree_if_move_item_with_keys

Scroll scene tree dock when moving item(s) with keys
This commit is contained in:
Thaddeus Crews
2025-07-14 10:30:41 -05:00

View File

@@ -872,6 +872,9 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
undo_redo->commit_action();
NodePath np = selection.front()->get()->get_path();
TreeItem *item = scene_tree->get_scene_tree()->get_item_with_metadata(np);
callable_mp(scene_tree->get_scene_tree(), &Tree::scroll_to_item).call_deferred(item, false);
} break;
case TOOL_DUPLICATE: {
if (!profile_allow_editing) {