Explorar o código

Fix nodes being renamed into garbage upon conflict

kobewi %!s(int64=3) %!d(string=hai) anos
pai
achega
58146a74f7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scene/main/node.cpp

+ 1 - 1
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);