mirror of
https://codeberg.org/icewind/vmdl.git
synced 2026-06-03 08:34:23 +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
|
||||
.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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue