fix all polyframe update now

This commit is contained in:
2025-07-09 01:31:03 +02:00
parent bda0daa9b4
commit 40c3abdf45
2 changed files with 5 additions and 3 deletions

View File

@@ -139,7 +139,7 @@ impl MyApp {
Ok(j) => {
let decoded: Music = serde_json::from_str(&j).unwrap();
self.music = decoded;
self.music.update_frame(self.current_delta);
self.music.update_frame();
}
Err(e) => {
eprintln!("Error, no saves with this name to load, {e} ");

View File

@@ -59,8 +59,10 @@ impl Music {
}
}
pub fn update_frame(&mut self, delta: f32) {
self.find_poly_frame(delta).update();
pub fn update_frame(&mut self) {
for (_, p) in &mut self.poly_frame {
p.update();
}
}
pub fn fix_teta(&mut self, delta: f32) {