Fix nodes being renamed into garbage upon conflict

This commit is contained in:
kobewi 2021-11-15 02:05:44 +01:00
parent 8bb163807a
commit 58146a74f7

View file

@ -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);