(&mut self, file_data: &[u8])
| 416 | } |
| 417 | |
| 418 | pub fn load_model_animation(&mut self, file_data: &[u8]) -> f64 { |
| 419 | match load_gltf_animation(file_data) { |
| 420 | Some(anim) => self.animations.alloc(anim), |
| 421 | None => 0.0, |
| 422 | } |
| 423 | } |
| 424 | |
| 425 | pub fn update_model_animation(&mut self, handle: f64, anim_index: usize, time: f32) { |
| 426 | if let Some(model_anim) = self.animations.get_mut(handle) { |
no test coverage detected