mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user