From da1e2df96da227cfb9fb0684107219720c45f78c Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 15 Nov 2026 19:02:01 +0000 Subject: [PATCH] Keep root FBX model names --- crates/formats/src/mesh_import/fbx.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/formats/src/mesh_import/fbx.rs b/crates/formats/src/mesh_import/fbx.rs index ab8248ea..e8fbee03 100644 --- a/crates/formats/src/mesh_import/fbx.rs +++ b/crates/formats/src/mesh_import/fbx.rs @@ -107,7 +107,7 @@ fn read_inner(bytes: &[u8], files: &mut Files) -> Result { } let world = parent * to_mat(node.transform); let parent_name = inherited.and_then(|i| scene.nodes.get(i)).map_or("", |n| n.name.as_str()); - let synthetic = node.mesh.is_some() && node.name.strip_suffix(" geometry") == Some(parent_name); + let synthetic = inherited.is_some() && node.mesh.is_some() && node.name.strip_suffix(" geometry") == Some(parent_name); let next_parent = if synthetic { inherited } else { Some(id) }; for child in node.children.iter().rev() { if stack.len() >= stack_limit {