From 58146a74f7fa79414691000bb50f3cc7833ab2b7 Mon Sep 17 00:00:00 2001 From: kobewi Date: Mon, 15 Nov 2021 02:05:44 +0100 Subject: [PATCH] Fix nodes being renamed into garbage upon conflict --- 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 44420fcc317..444ffa0f4de 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -896,7 +896,7 @@ void Node::set_name(const String &p_name) { data.name = name; if (data.parent) { - data.parent->_validate_child_name(this); + data.parent->_validate_child_name(this, true); } propagate_notification(NOTIFICATION_PATH_CHANGED);