diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2023-01-13 00:39:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-13 00:39:20 +0100 |
commit | 7dfcd555671e31e964948aa3e0f650898d39b80f (patch) | |
tree | a5840319c447369f905738af3a5ec6af44b71708 /editor | |
parent | 14cca21256f77e4eda921211d5a75b803a642b72 (diff) | |
parent | 98ed75f9e05f600b8cb5372df424ca3ae2f56ffe (diff) |
Merge pull request #71152 from nongvantinh/fix-70981
Fix node name in the SceneTreeEditor allows a node to have no name
Diffstat (limited to 'editor')
-rw-r--r-- | editor/scene_tree_editor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/scene_tree_editor.cpp b/editor/scene_tree_editor.cpp index 2f50172f54..b4f1ca5d0b 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; } |