summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 6cc610cc6f..6aa3891035 100644
--- a/scene/main/node.cpp
+++ b/scene/main/node.cpp
@@ -1098,7 +1098,7 @@ void Node::_generate_serial_child_name(const Node *p_child, StringName &name) co
// Assign the base name + separator to name if we have numbers preceded by a separator
if (nums.length() > 0 && name_string.substr(name_last_index, nnsep.length()) == nnsep) {
- name_string = name_string.substr(0, name_last_index + nnsep.length()).strip_edges();
+ name_string = name_string.substr(0, name_last_index + nnsep.length());
} else {
nums = "";
}