mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
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. ---
This commit is contained in:
parent
847c26b8dc
commit
750ec41c86
2 changed files with 4 additions and 8 deletions
|
@ -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 {
|
||||
|
|
|
@ -55,10 +55,8 @@ fn setup(mut commands: Commands, assets: Res<AssetServer>, color_tint: Res<Color
|
|||
let sprite_handle = assets.load("branding/icon.png");
|
||||
|
||||
// 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
|
||||
let mut sprites = vec![];
|
||||
|
|
Loading…
Reference in a new issue