From 393fb68aeabbe5e65baee2e2a6a39e9c69638c71 Mon Sep 17 00:00:00 2001 From: AeioMuch <75151379+AeioMuch@users.noreply.github.com> Date: Tue, 23 Jul 2024 09:54:15 +0200 Subject: [PATCH] Fix node gets wrongly selected after moving another node in the tree --- editor/scene_tree_dock.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index d0f1fbfae76..2cb2120d110 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -2416,6 +2416,7 @@ void SceneTreeDock::_do_reparent(Node *p_new_parent, int p_position_in_parent, V if (need_edit) { EditorNode::get_singleton()->edit_current(); + editor_selection->clear(); } }