Redo serial name fixup from 799ed2b989
reduz wanted the original PR reverted due to issues, so this follow-up had to be too (done in8cb54182ad
). But he ended up adapting part of the original PR in27d7772381
without including this fix.
This commit is contained in:
parent
3652442a92
commit
1ff170e67f
|
@ -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 = "";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue