mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-06 02:23:16 +00:00
Fix nodes being renamed into garbage upon conflict
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user