add fake test morph

This commit is contained in:
Lee-Orr
2024-02-08 19:22:03 -05:00
parent 725a56aa5a
commit c4739a65f4
3 changed files with 16 additions and 2 deletions
+5 -1
View File
@@ -1,7 +1,7 @@
use std::{num::ParseFloatError, str::FromStr};
use bevy::{
animation::{self, AnimationClip, EntityPath, Keyframes, VariableCurve}, asset::{meta::Settings, Asset, AssetLoader, AsyncReadExt}, core::Name, reflect::Reflect
animation::{self, AnimationClip, EntityPath, Keyframes, VariableCurve}, asset::{meta::Settings, Asset, AssetLoader, AsyncReadExt}, core::Name, log::info, reflect::Reflect
};
use serde::{de::DeserializeOwned, Deserialize, Serialize};
@@ -290,8 +290,12 @@ impl AssetLoader for CSVAnimationLoader {
let csv_animation =
CSVAnimation::parse(&csv).map_err(CSVAnimationLoaderError::CSVParseError)?;
info!("Parsed Animation - got {} FPS with {} total frames", csv_animation.fps, csv_animation.frames.len());
let animation = csv_animation.generate_clip(&settings.0);
info!("Clip has duration of {}", animation.duration());
Ok(animation)
})
}