mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
fixes: #70981
This commit is contained in:
parent
269fa200d0
commit
98ed75f9e0
@ -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…
Reference in New Issue
Block a user