1
0
Fork 0

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
commit 2d1453c1e8
No known key found for this signature in database
GPG Key ID: 8C6E5FEB5FC03CCC
1 changed files with 3 additions and 0 deletions

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