Skip to content

Commit

Permalink
Correction for this comment in queue_sprites:
Browse files Browse the repository at this point in the history
```
// batch_range and dynamic_offset will be calculated in prepare_sprites.
```
 `Transparent2d` no longer has a `dynamic_offset` field and the `batch_range` is calculated in `prepare_sprite_image_bind_groups` now.
  • Loading branch information
ickshonpe committed Jan 31, 2025
1 parent fcd1847 commit 7b8b612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_sprite/src/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ pub fn queue_sprites(
pipeline,
entity: (*entity, *main_entity),
sort_key,
// batch_range and dynamic_offset will be calculated in prepare_sprites
// `batch_range` is calculated in `prepare_sprite_image_bind_groups`
batch_range: 0..0,
extra_index: PhaseItemExtraIndex::None,
indexed: true,
Expand Down

0 comments on commit 7b8b612

Please sign in to comment.