From 799ed2b98984414fd3b7b667c5e3e5d2e6d35a66 Mon Sep 17 00:00:00 2001 From: volzhs Date: Tue, 8 Jan 2019 22:37:45 +0900 Subject: [PATCH] Fix strip out spaces while generating serial number for node name --- 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 89b740e9a9e..ce40088539d 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -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 = ""; }