Don't set node name in Entity's setup. Name should be set before adding it into the tree.

This commit is contained in:
Relintai 2021-08-30 21:16:03 +02:00
parent f7808baee3
commit 376818cbc8

View File

@ -647,10 +647,6 @@ void Entity::setup(Ref<EntityCreateInfo> info) {
sets_entity_data(info->get_entity_data());
}
if (info->get_node_name() != "") {
set_name(info->get_node_name());
}
if (has_method("_setup")) {
#if GODOT4
call("_setup");