diff options
Diffstat (limited to 'world/src/vrm.rs')
-rw-r--r-- | world/src/vrm.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/world/src/vrm.rs b/world/src/vrm.rs index c408b1d..f014e66 100644 --- a/world/src/vrm.rs +++ b/world/src/vrm.rs @@ -51,11 +51,8 @@ pub fn extract_vrm_data(gltf: &Gltf) -> Result<VrmInfo> { o.camera_mount = fp.first_person_bone; o.camera_mount_offset = fp.first_person_bone_offset.map(convert_vrm_vec); for ann in fp.mesh_annotations { - match ann.first_person_flag { - FirstPersonFlag::ThirdPersonOnly => { - o.hide_first_person.insert(ann.node); - } - _ => (), + if let FirstPersonFlag::ThirdPersonOnly = ann.first_person_flag { + o.hide_first_person.insert(ann.node); } } } |