From 7a03903610876e1bc3a59f20128eecc7fb7b35bb Mon Sep 17 00:00:00 2001 From: Dmitry Stepanov Date: Fri, 24 Oct 2025 08:49:16 +0300 Subject: [PATCH] fixed gltf loading --- fyrox-impl/src/resource/gltf/animation.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fyrox-impl/src/resource/gltf/animation.rs b/fyrox-impl/src/resource/gltf/animation.rs index 06a2fc244..f56935ef7 100644 --- a/fyrox-impl/src/resource/gltf/animation.rs +++ b/fyrox-impl/src/resource/gltf/animation.rs @@ -162,10 +162,10 @@ impl ImportedTrack { } } fn fixed_value(&self) -> Option> { - 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 {