Merge pull request #40724 from KoBeWi/weird_condition_🤔

Fix ultra long node names
This commit is contained in:
Rémi Verschelde 2020-07-26 21:58:06 +02:00 committed by GitHub
commit d7e00a20a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1058,7 +1058,7 @@ void Node::_validate_child_name(Node *p_child, bool p_force_human_readable) {
bool unique = true;
if (p_child->data.name == StringName() || p_child->data.name.operator String()[0] == '@') {
if (p_child->data.name == StringName()) {
//new unique name must be assigned
unique = false;
} else {