From 750ec41c86dc309f1e746deb7ef34d95fe1c16cd Mon Sep 17 00:00:00 2001 From: Carlrs Date: Sun, 25 Sep 2022 18:03:53 +0000 Subject: [PATCH] Don't bundle extra transform with camera in many sprites examples (#6079) Fixes #6077 # Objective - Make many_sprites and many_animated_sprites work again ## Solution - Removed the extra transform from the camera bundle - not sure why it was necessary, since `Camera2dBundle::default()` already contains a transform with the same parameters. --- --- examples/stress_tests/many_animated_sprites.rs | 6 ++---- examples/stress_tests/many_sprites.rs | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/examples/stress_tests/many_animated_sprites.rs b/examples/stress_tests/many_animated_sprites.rs index 4ea6d9fae0..91586b8dac 100644 --- a/examples/stress_tests/many_animated_sprites.rs +++ b/examples/stress_tests/many_animated_sprites.rs @@ -51,10 +51,8 @@ fn setup( let texture_atlas_handle = texture_atlases.add(texture_atlas); // Spawns the camera - commands.spawn(( - Camera2dBundle::default(), - Transform::from_xyz(0.0, 0.0, 1000.0), - )); + + commands.spawn(Camera2dBundle::default()); // Builds and spawns the sprites for y in -half_y..half_y { diff --git a/examples/stress_tests/many_sprites.rs b/examples/stress_tests/many_sprites.rs index 1a0e22a847..34e7d64d30 100644 --- a/examples/stress_tests/many_sprites.rs +++ b/examples/stress_tests/many_sprites.rs @@ -55,10 +55,8 @@ fn setup(mut commands: Commands, assets: Res, color_tint: Res