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 {