mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-20 17:14:44 +01:00
Don't set node name in Entity's setup. Name should be set before adding it into the tree.
This commit is contained in:
parent
f7808baee3
commit
376818cbc8
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user