Merge pull request #91045 from lyuma/fbx_root_node

fbx: Avoid name conflict with humanoid "Root" bone
This commit is contained in:
Rémi Verschelde 2024-04-23 19:12:14 +02:00
commit 515404486b
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -320,7 +320,7 @@ Error FBXDocument::_parse_nodes(Ref<FBXState> p_state) {
node->set_name(_as_string(fbx_node->name));
node->set_original_name(node->get_name());
} else if (fbx_node->is_root) {
node->set_name("Root");
node->set_name("RootNode");
}
if (fbx_node->camera) {
node->camera = fbx_node->camera->typed_id;