Merge pull request #71152 from nongvantinh/fix-70981
Fix node name in the SceneTreeEditor allows a node to have no name
This commit is contained in:
commit
7dfcd55567
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue