From 754194fd24b7baaa24fcadca0b1378413e39421b Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Thu, 10 Oct 2024 11:31:39 -0700 Subject: [PATCH] Fix invalid scene file for `scene` example (#15829) # Objective Fixes #15828 ## Solution Ran the example to generate `load_scene_example-new.scn.ron` and replaced `load_scene_example.scn.ron` with the contents. ## Testing `cargo run --example scene` --- assets/scenes/load_scene_example.scn.ron | 36 +++++++++--------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/assets/scenes/load_scene_example.scn.ron b/assets/scenes/load_scene_example.scn.ron index 6527acf87a..28af975394 100644 --- a/assets/scenes/load_scene_example.scn.ron +++ b/assets/scenes/load_scene_example.scn.ron @@ -1,37 +1,29 @@ ( resources: { "scene::ResourceA": ( - score: 2, + score: 1, ), }, entities: { 4294967296: ( components: { - "bevy_transform::components::transform::Transform": ( - translation: ( - x: 0.0, - y: 0.0, - z: 0.0 - ), - rotation: ( - x: 0.0, - y: 0.0, - z: 0.0, - w: 1.0, - ), - scale: ( - x: 1.0, - y: 1.0, - z: 1.0 - ), + "bevy_core::name::Name": ( + hash: 17588334858059901562, + name: "joe", ), - "scene::ComponentB": ( - value: "hello", + "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)), + "bevy_transform::components::transform::Transform": ( + translation: (0.0, 0.0, 0.0), + rotation: (0.0, 0.0, 0.0, 1.0), + scale: (1.0, 1.0, 1.0), ), "scene::ComponentA": ( x: 1.0, y: 2.0, ), + "scene::ComponentB": ( + value: "hello", + ), }, ), 4294967297: ( @@ -42,5 +34,5 @@ ), }, ), - } -) + }, +) \ No newline at end of file