Redo serial name fixup from 799ed2b989

reduz wanted the original PR reverted due to issues, so this follow-up had to be too
(done in 8cb54182ad). But he ended up adapting part of
the original PR in 27d7772381 without including this fix.
This commit is contained in:
Rémi Verschelde 2019-01-11 23:02:07 +01:00
parent 3652442a92
commit 1ff170e67f
1 changed files with 1 additions and 1 deletions

View File

@ -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 = "";
}