diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-01-11 23:02:07 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2019-01-11 23:02:57 +0100 |
commit | 1ff170e67f0044b0a9f42fc936f09847c5ec4127 (patch) | |
tree | 8d1e3afd76226f4de9ea0ea7d753d7420759334d | |
parent | 3652442a923575890d1ca0c3719a6c80039dcf59 (diff) |
Redo serial name fixup from 799ed2b98984414fd3b7b667c5e3e5d2e6d35a66
reduz wanted the original PR reverted due to issues, so this follow-up had to be too
(done in 8cb54182ad2698a962def84f79cc8206ac9f13b2). But he ended up adapting part of
the original PR in 27d77723811c2652c6118eca03a38c4ae1441895 without including this fix.
-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 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 = ""; } |