From 6fca974f639dd73e748b02b27eb06df91d83435c Mon Sep 17 00:00:00 2001 From: Flyn San Date: Mon, 6 Jan 2025 22:28:14 +1000 Subject: [PATCH] Deselect all when renaming a node or deleting a node/connection --- editor/plugins/animation_state_machine_editor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/plugins/animation_state_machine_editor.cpp b/editor/plugins/animation_state_machine_editor.cpp index f5159818f34..c1579f484ab 100644 --- a/editor/plugins/animation_state_machine_editor.cpp +++ b/editor/plugins/animation_state_machine_editor.cpp @@ -1642,6 +1642,8 @@ void AnimationNodeStateMachineEditor::_name_edited(const String &p_text) { name_edit_popup->hide(); updating = false; + selected_nodes.clear(); + connected_nodes.clear(); state_machine_draw->queue_redraw(); } @@ -1701,6 +1703,7 @@ void AnimationNodeStateMachineEditor::_erase_selected(const bool p_nested_action updating = false; } + connected_nodes.clear(); selected_nodes.clear(); }