fixed gltf loading

This commit is contained in:
Dmitry Stepanov
2025-10-24 08:49:16 +03:00
parent 18f4633e26
commit 7a03903610
+4 -4
View File
@@ -162,10 +162,10 @@ impl ImportedTrack {
}
}
fn fixed_value(&self) -> Option<Box<[f32]>> {
let mut result: Box<[f32]> = if let ImportedBinding::Weight(_) = self.target.binding {
<[f32; 1]>::default().into()
} else {
<[f32; 3]>::default().into()
let mut result: Box<[f32]> = match self.target.binding {
ImportedBinding::Weight(_) => <[f32; 1]>::default().into(),
ImportedBinding::Rotation => <[f32; 4]>::default().into(),
_ => <[f32; 3]>::default().into(),
};
for (i, curve) in self.curves.iter().enumerate() {
if curve.len() != 1 {