bevy/pipelined/bevy_sprite2
Daniel McNab 5fe73be2b5 Sprite change image (#3207)
# Objective

- Changing the underlying image would not update a sprite

## Solution

- 'Detect' if the underlying image changes to update the sprite

Currently, we don't support change detection on `RenderAssets`, so we have to manually check it. 
This method at least maintains the bind groups when the image isn't changing. They were cached, so I assume that's important.

This gives us correct behaviour here.

Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2021-12-01 23:09:31 +00:00
..
src Sprite change image (#3207) 2021-12-01 23:09:31 +00:00
Cargo.toml Use crevice std140_size_static everywhere (#3168) 2021-11-22 21:44:05 +00:00