MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / load_model_animation

Method load_model_animation

native/shared/src/models.rs:418–423  ·  view source on GitHub ↗
(&mut self, file_data: &[u8])

Source from the content-addressed store, hash-verified

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) {

Calls 2

load_gltf_animationFunction · 0.85
allocMethod · 0.80

Tested by

no test coverage detected