Merge pull request #24842 from volzhs/fix-node-name-serial

Fix strip out spaces while generating serial number for node name
This commit is contained in:
Rémi Verschelde 2019-01-09 12:13:06 +01:00 committed by GitHub
commit e8f73d8c4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1070,7 +1070,7 @@ String Node::_generate_serial_child_name(Node *p_child) {
// Assign the base name + separator to name if we have numbers preceded by a separator
if (nums.length() > 0 && name.substr(name_last_index, nnsep.length()) == nnsep) {
name = name.substr(0, name_last_index + nnsep.length()).strip_edges();
name = name.substr(0, name_last_index + nnsep.length());
} else {
nums = "";
}