summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorTomasz Chabora <kobewi4e@gmail.com>2020-07-26 15:29:50 +0200
committerTomasz Chabora <kobewi4e@gmail.com>2020-07-26 15:29:50 +0200
commitd3f2062d866ca0838549f83cd8870bbde5cda636 (patch)
tree9fdd653b0a6ef76f3207fed6fe3fabeb8092a4ec /scene
parentcab0f12aee0e3c9c73d7773cc650bde0ff92ed3a (diff)
Fix ultra long node names
Diffstat (limited to 'scene')
-rw-r--r--scene/main/node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index 88f9730f78..683fe2fb01 100644
--- a/scene/main/node.cpp
+++ b/scene/main/node.cpp
@@ -1060,7 +1060,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 {