Skip to content

Commit 1e7e6c9

Browse files
Fix scene example (#11289)
Since #9907 the generation starts at `1` instead of `0` so `Entity::to_bits` now returns `4294967296` (ie. `u32::MAX + 1`) as the lowest number instead of `0`. Without this change scene loading fails with this error message: `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: 8:6: Invalid generation bits`
1 parent 8ad1b93 commit 1e7e6c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/scenes/load_scene_example.scn.ron

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
),
66
},
77
entities: {
8-
0: (
8+
4294967296: (
99
components: {
1010
"bevy_transform::components::transform::Transform": (
1111
translation: (
@@ -34,7 +34,7 @@
3434
),
3535
},
3636
),
37-
1: (
37+
4294967297: (
3838
components: {
3939
"scene::ComponentA": (
4040
x: 3.0,

0 commit comments

Comments
 (0)