From 98ed75f9e05f600b8cb5372df424ca3ae2f56ffe Mon Sep 17 00:00:00 2001 From: Nong Van Tinh Date: Tue, 10 Jan 2023 16:18:38 +0700 Subject: fixes: #70981 --- editor/scene_tree_editor.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'editor') diff --git a/editor/scene_tree_editor.cpp b/editor/scene_tree_editor.cpp index dad584ea92..98812daf72 100644 --- a/editor/scene_tree_editor.cpp +++ b/editor/scene_tree_editor.cpp @@ -993,6 +993,10 @@ void SceneTreeEditor::_renamed() { } if (new_name == n->get_name()) { + if (which->get_text(0).is_empty()) { + which->set_text(0, new_name); + } + return; } -- cgit v1.2.3