Skip to content

Commit fe7a29e

Browse files
authored
Fix error in scene example (#17799)
# Objective After #16894, this example started logging errors: ``` ERROR bevy_asset::server: Failed to load asset 'scenes/load_scene_example.scn.ron' with asset loader 'bevy_scene::scene_loader::SceneLoader': Could not parse RON: 10:33: Expected string ``` Fixes #17798, this is the only actionable/unreported issue in there as far as I can tell. ## Solution Update the serialized scene with the expected format for `Name` ## Testing `cargo run --example scene` ## Discussion This example breaks very often and we don't always catch it. It might be nice to have this scene either 1. produce visual output so that it can be checked 2. panic if the scene fails to load (check for LoadState::Failed) Either of those would make the failures visible in [the example report](https://thebevyflock.github.io/bevy-example-runner/). Not sure which method would best suit the example.
1 parent 0cb3eae commit fe7a29e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

assets/scenes/load_scene_example.scn.ron

+1-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
entities: {
88
4294967296: (
99
components: {
10-
"bevy_ecs::name::Name": (
11-
hash: 17588334858059901562,
12-
name: "joe",
13-
),
10+
"bevy_ecs::name::Name": "joe",
1411
"bevy_transform::components::global_transform::GlobalTransform": ((1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)),
1512
"bevy_transform::components::transform::Transform": (
1613
translation: (0.0, 0.0, 0.0),

0 commit comments

Comments
 (0)