Browse Source

fbx: Avoid name conflict with humanoid "Root" bone

The importer forces name uniqueness, even for the root. "RootNode" is less likely to conflict.
Lyuma 1 year ago
parent
commit
33e977ee34
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/fbx/fbx_document.cpp

+ 1 - 1
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_name(_as_string(fbx_node->name));
 			node->set_original_name(node->get_name());
 			node->set_original_name(node->get_name());
 		} else if (fbx_node->is_root) {
 		} else if (fbx_node->is_root) {
-			node->set_name("Root");
+			node->set_name("RootNode");
 		}
 		}
 		if (fbx_node->camera) {
 		if (fbx_node->camera) {
 			node->camera = fbx_node->camera->typed_id;
 			node->camera = fbx_node->camera->typed_id;