diff options
author | metamuffin <metamuffin@disroot.org> | 2025-03-12 16:34:45 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-03-12 16:34:45 +0100 |
commit | 3ed621256f1e02032250477fa574eab38bd34976 (patch) | |
tree | 100f24b5a97a20cee87fd14b1a68e8250a6328f9 /world/src/animation.rs | |
parent | 56ffdcff01b57af14db97b4515b419da0d234387 (diff) | |
download | weareserver-3ed621256f1e02032250477fa574eab38bd34976.tar weareserver-3ed621256f1e02032250477fa574eab38bd34976.tar.bz2 weareserver-3ed621256f1e02032250477fa574eab38bd34976.tar.zst |
respack
Diffstat (limited to 'world/src/animation.rs')
-rw-r--r-- | world/src/animation.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/world/src/animation.rs b/world/src/animation.rs index 54ce388..ca049e5 100644 --- a/world/src/animation.rs +++ b/world/src/animation.rs @@ -61,13 +61,14 @@ pub fn import_animation( ReadOutputs::Rotations(iter) => iter .into_f32() .map(Quat::from_array) - .map(|q| rot.mul_quat(q)) + .map(|q| q * rot) .flat_map(|q| q.to_array()) .collect(), - ReadOutputs::Scales(iter) => iter - .flat_map(|[x, y, z]| (t.matrix3 * vec3a(x, y, z)).to_array()) - .collect(), + // ReadOutputs::Scales(iter) => iter + // .flat_map(|[x, y, z]| (t.matrix3 * vec3a(x, y, z)).to_array()) + // .collect(), ReadOutputs::MorphTargetWeights(iter) => iter.into_f32().collect(), + _ => continue, } } else { match reader.read_outputs().unwrap() { |