bevy/crates/bevy_asset
François e5b3cc45ba
Assets: fix first hot reloading (#9804)
# Objective

- Hot reloading doesn't work the first time it is used

## Solution

- Currently, Bevy processor:
  1. Create the `imported_assets` folder
  2. Setup a watcher on it
  3. Clear empty folders, so the `imported_assets` folder is deleted
4. Recreate the `imported_assets` folder and add all the imported assets
- On a first run without an existing `imported_assets` with some
content, hot reloading won't work as step 3 breaks the file watcher
- This PR stops the empty root folder from being deleted
- Also don't setup the processor internal asset server for file
watching, freeing up a thread

---------

Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2023-10-26 21:32:12 +00:00
..
macros Fix unused variable warning for simple AssetV2 derives (#9961) 2023-09-29 08:08:13 +00:00
src Assets: fix first hot reloading (#9804) 2023-10-26 21:32:12 +00:00
Cargo.toml few fmt tweaks (#10264) 2023-10-25 19:20:17 +00:00