mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
7ae36a99c8
# 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` | |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |