summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorNong Van Tinh <vannongtinh@gmail.com>2023-01-10 16:18:38 +0700
committerNong Van Tinh <vannongtinh@gmail.com>2023-01-10 16:18:38 +0700
commit98ed75f9e05f600b8cb5372df424ca3ae2f56ffe (patch)
tree5461ff6b019e9562e57fa38cd184461aed394be8 /editor
parent269fa200d04ae96b0114b788e18df638c5fb164b (diff)
fixes: #70981
Diffstat (limited to 'editor')
-rw-r--r--editor/scene_tree_editor.cpp4
1 files changed, 4 insertions, 0 deletions
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;
}