Skip to content

Conversation

@cart
Copy link
Member

@cart cart commented Sep 10, 2023

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.

@cart cart added A-Assets Load files from disk to use for things like images, models, and sounds C-Usability A targeted quality-of-life change that makes Bevy easier to use labels Sep 10, 2023
@cart cart mentioned this pull request Sep 10, 2023
45 tasks
@cart cart added this to the 0.12 milestone Sep 10, 2023
@cart cart enabled auto-merge October 15, 2023 18:22
@cart cart added this pull request to the merge queue Oct 15, 2023
Merged via the queue into bevyengine:main with commit 0294373 Oct 15, 2023
ameknite pushed a commit to ameknite/bevy that referenced this pull request Nov 6, 2023
# Objective

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

Referenced in bevyengine#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 <[email protected]>
rdrpenguin04 pushed a commit to rdrpenguin04/bevy that referenced this pull request Jan 9, 2024
# Objective

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

Referenced in bevyengine#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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Assets Load files from disk to use for things like images, models, and sounds C-Usability A targeted quality-of-life change that makes Bevy easier to use

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants