bevy/crates/bevy_sprite/src
Doonv 7ae36a99c8
Fix bug where Sprite::rect was ignored (#11480)
# Objective

https://github.com/bevyengine/bevy/pull/5103 caused a bug where
`Sprite::rect` was ignored by the engine. (Did nothing)

## Solution

My solution changes the way how Bevy calculates the rect, based on this
table:

| `atlas_rect` | `Sprite::rect` | Result |

|--------------|----------------|------------------------------------------------------|
| `None` | `None` | `None` |
| `None` | `Some` | `Sprite::rect` |
| `Some` | `None` | `atlas_rect` |
| `Some` | `Some` | `Sprite::rect` is used, relative to `atlas_rect.min`
|
2024-01-26 20:48:41 +00:00
..
mesh2d Update to wgpu 0.19 and raw-window-handle 0.6 (#11280) 2024-01-26 18:14:21 +00:00
render Fix bug where Sprite::rect was ignored (#11480) 2024-01-26 20:48:41 +00:00
texture_slice Sprite slicing and tiling (#10588) 2024-01-15 15:40:06 +00:00
bundle.rs Texture Atlas rework (#5103) 2024-01-16 13:59:08 +00:00
collide_aabb.rs refactor collide code (Adopted) (#11106) 2024-01-01 16:57:27 +00:00
dynamic_texture_atlas_builder.rs Texture Atlas rework (#5103) 2024-01-16 13:59:08 +00:00
lib.rs Texture Atlas rework (#5103) 2024-01-16 13:59:08 +00:00
sprite.rs Fix bug where Sprite::rect was ignored (#11480) 2024-01-26 20:48:41 +00:00
texture_atlas_builder.rs TextureAtlasBuilder now respects insertion order (#11474) 2024-01-22 15:44:56 +00:00
texture_atlas.rs Texture Atlas rework (#5103) 2024-01-16 13:59:08 +00:00