diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-07-26 21:58:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-26 21:58:06 +0200 |
commit | d7e00a20a62f40f853c2137f024eb4dc05267b9d (patch) | |
tree | 107e01c7d222bcd9dde129dcdc3bcdedbf364d9f | |
parent | dc456059a4ccd2583ad8ceac8612b4e6686aa4a4 (diff) | |
parent | d3f2062d866ca0838549f83cd8870bbde5cda636 (diff) |
Merge pull request #40724 from KoBeWi/weird_condition_🤔
Fix ultra long node names
-rw-r--r-- | scene/main/node.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp index cdc06c7c5d..4dcfcd9d96 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -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 { |