summaryrefslogtreecommitdiff
path: root/world/src/animation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'world/src/animation.rs')
-rw-r--r--world/src/animation.rs7
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())