Skip to content

Commit

Permalink
Removed the camera field from UiTextureSlicerBatch
Browse files Browse the repository at this point in the history
  • Loading branch information
ickshonpe committed Feb 3, 2025
1 parent b8b1980 commit aa3a00c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crates/bevy_ui/src/render/ui_texture_slice_pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ struct UiTextureSliceVertex {
pub struct UiTextureSlicerBatch {
pub range: Range<u32>,
pub image: AssetId<Image>,
pub camera: Entity,
}

#[derive(Resource)]
Expand Down Expand Up @@ -454,7 +453,6 @@ pub fn prepare_ui_slices(
let new_batch = UiTextureSlicerBatch {
range: vertices_index..vertices_index,
image: texture_slices.image,
camera: texture_slices.extracted_camera_entity,
};

batches.push((item.entity(), new_batch));
Expand Down

0 comments on commit aa3a00c

Please sign in to comment.