Skip to content

Commit

Permalink
Merge pull request #256 from Leafwing-Studios/main
Browse files Browse the repository at this point in the history
Run cargo fmt (so that CI stops failing 😅 )
  • Loading branch information
Brian Merchant authored Sep 4, 2022
2 parents bc68935 + 5147750 commit 6a6fb43
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/render/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,12 @@ pub fn queue_meshes(
msaa: Res<Msaa>,
mut image_bind_groups: ResMut<ImageBindGroups>,
standard_tilemap_meshes: Query<(Entity, &ChunkId, &Transform, &TilemapId)>,
mut views: Query<(Entity, &ExtractedView, &VisibleEntities, &mut RenderPhase<Transparent2d>)>,
mut views: Query<(
Entity,
&ExtractedView,
&VisibleEntities,
&mut RenderPhase<Transparent2d>,
)>,
#[cfg(not(feature = "atlas"))] mut texture_array_cache: ResMut<TextureArrayCache>,
#[cfg(not(feature = "atlas"))] render_queue: Res<RenderQueue>,
) {
Expand Down Expand Up @@ -132,9 +137,9 @@ pub fn queue_meshes(

for (entity, chunk_id, transform, tilemap_id) in standard_tilemap_meshes.iter() {
if !visible_entities.entities.contains(&tilemap_id.0) {
continue
continue;
}

if let Some(chunk) = chunk_storage.get(&UVec4::new(
chunk_id.0.x,
chunk_id.0.y,
Expand Down

0 comments on commit 6a6fb43

Please sign in to comment.