fix bonewieghts iterator

This commit is contained in:
Robin Appelman 2024-06-11 23:13:31 +02:00
commit 6a7e8a3079

View file

@ -88,7 +88,7 @@ pub struct BoneWeights {
impl BoneWeights { impl BoneWeights {
pub fn weights(&self) -> impl Iterator<Item = BoneWeight> + '_ { 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], weight: self.weight[i],
bone_id: self.bone[i], bone_id: self.bone[i],
}) })