bevy/crates/bevy_asset/src
Carter Anderson 02943737b2
Return an error when loading non-existent labels (#9751)
# Objective

Calling `asset_server.load("scene.gltf#SomeLabel")` will silently fail
if `SomeLabel` does not exist.

Referenced in #9714 

## Solution

We now detect this case and return an error. I also slightly refactored
`load_internal` to make the logic / dataflow much clearer.

---------

Co-authored-by: Pascal Hertleif <killercup@gmail.com>
2023-10-15 18:36:51 +00:00
..
io only set up processed source if asset plugin is not unprocessed (#10123) 2023-10-15 18:20:29 +00:00
processor Multiple Asset Sources (#9885) 2023-10-13 23:17:32 +00:00
server Return an error when loading non-existent labels (#9751) 2023-10-15 18:36:51 +00:00
assets.rs Bevy Asset V2 (#8624) 2023-09-07 02:07:27 +00:00
event.rs Bevy Asset V2 (#8624) 2023-09-07 02:07:27 +00:00
folder.rs Bevy Asset V2 (#8624) 2023-09-07 02:07:27 +00:00
handle.rs Asset v2: Asset path serialization fix (#9756) 2023-09-13 05:43:01 +00:00
id.rs Bevy Asset V2 (#8624) 2023-09-07 02:07:27 +00:00
lib.rs only set up processed source if asset plugin is not unprocessed (#10123) 2023-10-15 18:20:29 +00:00
loader.rs Multiple Asset Sources (#9885) 2023-10-13 23:17:32 +00:00
meta.rs Removed anyhow (#10003) 2023-10-06 07:20:13 +00:00
path.rs Return an error when loading non-existent labels (#9751) 2023-10-15 18:36:51 +00:00
reflect.rs Bevy Asset V2 (#8624) 2023-09-07 02:07:27 +00:00
saver.rs Removed anyhow (#10003) 2023-10-06 07:20:13 +00:00