mirror of
https://codeberg.org/icewind/vmdl.git
synced 2026-06-03 08:34:23 +02:00
fix bonewieghts iterator
This commit is contained in:
parent
073d5932b5
commit
6a7e8a3079
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ pub struct BoneWeights {
|
|||
|
||||
impl BoneWeights {
|
||||
pub fn weights(&self) -> impl Iterator<Item = BoneWeight> + '_ {
|
||||
(0..min(self.bone_count as usize, 2)).map(|i| BoneWeight {
|
||||
(0..min(self.bone_count as usize, 3)).map(|i| BoneWeight {
|
||||
weight: self.weight[i],
|
||||
bone_id: self.bone[i],
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue