fix(emscripten): string pointer casting, fixup AssetError handling

This commit is contained in:
2025-08-11 11:25:52 -05:00
parent e0f8443e75
commit c5213320ac
2 changed files with 4 additions and 6 deletions

View File

@@ -21,10 +21,8 @@ impl DirectionalAnimatedTexture {
}
pub fn tick(&mut self, dt: f32) {
for texture in self.textures.iter_mut() {
if let Some(texture) = texture {
texture.tick(dt);
}
for texture in self.textures.iter_mut().flatten() {
texture.tick(dt);
}
}