From 1ff170e67f0044b0a9f42fc936f09847c5ec4127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 11 Jan 2019 23:02:07 +0100 Subject: [PATCH] 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. --- scene/main/node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 6cc610cc6f8..6aa38910357 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 = ""; }