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/animation.rs | |
parent | 6df8b23ffc7ff248dc9fe5d3d8c4ee60abbab022 (diff) | |
download | weareserver-b51a9ef2d091dfac4833100e9835471e365168e1.tar weareserver-b51a9ef2d091dfac4833100e9835471e365168e1.tar.bz2 weareserver-b51a9ef2d091dfac4833100e9835471e365168e1.tar.zst |
clippy
Diffstat (limited to 'world/src/animation.rs')
-rw-r--r-- | world/src/animation.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/world/src/animation.rs b/world/src/animation.rs index ee6028e..54ce388 100644 --- a/world/src/animation.rs +++ b/world/src/animation.rs @@ -30,8 +30,8 @@ use weareshared::{ store::ResourceStore, }; -pub fn import_animation<'a>( - a: Animation<'a>, +pub fn import_animation( + a: Animation<'_>, store: &ResourceStore, transform: Affine3A, joint_index_to_ibm: &BTreeMap<usize, Affine3A>, @@ -62,8 +62,7 @@ pub fn import_animation<'a>( .into_f32() .map(Quat::from_array) .map(|q| rot.mul_quat(q)) - .map(|q| q.to_array()) - .flatten() + .flat_map(|q| q.to_array()) .collect(), ReadOutputs::Scales(iter) => iter .flat_map(|[x, y, z]| (t.matrix3 * vec3a(x, y, z)).to_array()) |