bevy/crates/bevy_asset/src
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
..
diagnostic Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
io bevy_asset: Add AssetServerSettings watch_for_changes member (#3643) 2022-02-04 03:21:29 +00:00
asset_server.rs bevy_asset: Add AssetServerSettings watch_for_changes member (#3643) 2022-02-04 03:21:29 +00:00
assets.rs check if resource for asset already exists before adding it (#3560) 2022-02-06 01:07:56 +00:00
filesystem_watcher.rs Bump notify to 5.0.0-pre.11 (#2564) 2021-07-29 23:56:16 +00:00
handle.rs Documented Handles and Assets (#3348) 2022-01-04 23:38:39 +00:00
info.rs [assets] set LoadState properly and more testing! (#2226) 2021-06-08 02:46:44 +00:00
lib.rs bevy_asset: Add AssetServerSettings watch_for_changes member (#3643) 2022-02-04 03:21:29 +00:00
loader.rs Fix doc_markdown lints in bevy_asset (#3468) 2021-12-29 17:52:39 +00:00
path.rs Allow String and &String as Id for AssetServer.get_handle(id) (#3280) 2021-12-09 22:40:15 +00:00