mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
75738ed80f
# Objective currently if an asset loader panics, the asset is left in a perpetual `Loading` state. this can occur with external crates (eg the image crate panics on bad data). catch this panic and resolve the asset to `Failed` ## Solution `AssertUnwindSafe(loader.load).catch_unwind()` and map the panic to an `AssetLoadError` separated out from #13170 |
||
---|---|---|
.. | ||
macros | ||
src | ||
Cargo.toml | ||
README.md |