summaryrefslogtreecommitdiff
path: root/scene/main
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2021-11-15 02:05:44 +0100
committerkobewi <kobewi4e@gmail.com>2021-11-15 02:05:44 +0100
commit58146a74f7fa79414691000bb50f3cc7833ab2b7 (patch)
tree2979f7ea360c968c930ee1025132196bf6caf554 /scene/main
parent8bb163807a63ad4f5b6ea6469149252ea5304881 (diff)
Fix nodes being renamed into garbage upon conflict
Diffstat (limited to 'scene/main')
-rw-r--r--scene/main/node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index 44420fcc31..444ffa0f4d 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);