From 1e7e6c93e668a2197eab9f169782edf3ab44721e Mon Sep 17 00:00:00 2001 From: irate Date: Mon, 22 Jan 2024 16:14:41 +0100 Subject: [PATCH] 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` --- assets/scenes/load_scene_example.scn.ron | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/scenes/load_scene_example.scn.ron b/assets/scenes/load_scene_example.scn.ron index c1c725c8d2ccd..6527acf87a1cf 100644 --- a/assets/scenes/load_scene_example.scn.ron +++ b/assets/scenes/load_scene_example.scn.ron @@ -5,7 +5,7 @@ ), }, entities: { - 0: ( + 4294967296: ( components: { "bevy_transform::components::transform::Transform": ( translation: ( @@ -34,7 +34,7 @@ ), }, ), - 1: ( + 4294967297: ( components: { "scene::ComponentA": ( x: 3.0,