diff options
author | metamuffin <metamuffin@disroot.org> | 2025-02-25 21:57:49 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-02-25 21:57:49 +0100 |
commit | b51a9ef2d091dfac4833100e9835471e365168e1 (patch) | |
tree | 6855f9f2c7116cd3fc4ecd1774f3a2f42157c1c2 /world/src/vrm.rs | |
parent | 6df8b23ffc7ff248dc9fe5d3d8c4ee60abbab022 (diff) | |
download | weareserver-b51a9ef2d091dfac4833100e9835471e365168e1.tar weareserver-b51a9ef2d091dfac4833100e9835471e365168e1.tar.bz2 weareserver-b51a9ef2d091dfac4833100e9835471e365168e1.tar.zst |
clippy
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); } } } |