bevy/crates/bevy_asset
François 75286b8540 check if resource for asset already exists before adding it (#3560)
# Objective

- Fix #3559 
- Avoid erasing existing resource `Assets<T>` when adding it twice

## Solution

- Before creating a new `Assets<T>`, check if it has already been added to the world


Co-authored-by: François <8672791+mockersf@users.noreply.github.com>
Co-authored-by: Aevyrie Roessler <aevyrie@gmail.com>
2022-02-06 01:07:56 +00:00
..
src check if resource for asset already exists before adding it (#3560) 2022-02-06 01:07:56 +00:00
Cargo.toml check if resource for asset already exists before adding it (#3560) 2022-02-06 01:07:56 +00:00