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

Scroll scene tree when moving item with keys

This commit is contained in:
AeioMuch
2025-07-10 16:30:52 +02:00
parent 4d1f26e1fd
commit 5a38042b2d

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) {