This commit is contained in:
Robin Appelman 2024-12-25 15:43:35 +01:00
commit 41f313d8f7
2 changed files with 1 additions and 5 deletions

View file

@ -158,7 +158,7 @@ impl Model {
.local_animations
.iter()
.filter_map(|desc| desc.animations.iter().find(|animation| animation.bone == 0))
.find(|anim| anim.rotation_looks_valid())
.next()
.map(|animation| animation.rotation(0))
.map(Matrix4::from)
.unwrap_or_else(Matrix4::identity)

View file

@ -349,10 +349,6 @@ impl Animation {
self.rotation_data.rotation(frame)
}
pub(crate) fn rotation_looks_valid(&self) -> bool {
true
}
pub fn position(&self, frame: usize) -> Vector {
self.position_data.position(frame)
}