diff options
author | Lyuma <xn.lyuma@gmail.com> | 2024-04-23 01:43:03 -0700 |
---|---|---|
committer | Lyuma <xn.lyuma@gmail.com> | 2024-04-23 01:43:03 -0700 |
commit | 33e977ee34394a737c2f50d2d07b12b0e521375d (patch) | |
tree | 54faf36f33479f02ad098bfaa96fa729fb895d2f | |
parent | 7abe0c6014022874378cb64a11b26b0f0f178324 (diff) | |
download | redot-engine-33e977ee34394a737c2f50d2d07b12b0e521375d.tar.gz |
fbx: Avoid name conflict with humanoid "Root" bone
The importer forces name uniqueness, even for the root. "RootNode" is less likely to conflict.
-rw-r--r-- | modules/fbx/fbx_document.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/fbx/fbx_document.cpp b/modules/fbx/fbx_document.cpp index 44a929d285..95b4a91809 100644 --- a/modules/fbx/fbx_document.cpp +++ b/modules/fbx/fbx_document.cpp @@ -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; |