Fix nodes being renamed into garbage upon conflict
This commit is contained in:
parent
8bb163807a
commit
58146a74f7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue