mirror of
https://codeberg.org/icewind/vmdl.git
synced 2026-06-03 16:44:11 +02:00
cleanup
This commit is contained in:
parent
e40471cda0
commit
41f313d8f7
2 changed files with 1 additions and 5 deletions
|
|
@ -158,7 +158,7 @@ impl Model {
|
||||||
.local_animations
|
.local_animations
|
||||||
.iter()
|
.iter()
|
||||||
.filter_map(|desc| desc.animations.iter().find(|animation| animation.bone == 0))
|
.filter_map(|desc| desc.animations.iter().find(|animation| animation.bone == 0))
|
||||||
.find(|anim| anim.rotation_looks_valid())
|
.next()
|
||||||
.map(|animation| animation.rotation(0))
|
.map(|animation| animation.rotation(0))
|
||||||
.map(Matrix4::from)
|
.map(Matrix4::from)
|
||||||
.unwrap_or_else(Matrix4::identity)
|
.unwrap_or_else(Matrix4::identity)
|
||||||
|
|
|
||||||
|
|
@ -349,10 +349,6 @@ impl Animation {
|
||||||
self.rotation_data.rotation(frame)
|
self.rotation_data.rotation(frame)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn rotation_looks_valid(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn position(&self, frame: usize) -> Vector {
|
pub fn position(&self, frame: usize) -> Vector {
|
||||||
self.position_data.position(frame)
|
self.position_data.position(frame)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue