You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TheLeonsver1
changed the title
Res<Assets<T>>.is_selected() is true every frame, even when not changedRes<Assets<T>>.is_changed() is true every frame, even when not changed
May 29, 2021
## Objective
- Fixes: bevyengine#2275
- `Assets` were being flagged as 'changed' each frame regardless of if the assets were actually being updated.
## Solution
- Only have `Assets` change detection be triggered when the collection is actually modified.
- This includes utilizing `ResMut` further down the stack instead of a `&mut Assets` directly.
Bevy version
0.5
Operating system & version
Windows 10
What you did
checked if my assets changed
What you expected to happen
for it to only be triggered once after the assets were changed.
What actually happened
Res<Assets<T>>.is_changed()
triggered every frame without even changing assetsThe text was updated successfully, but these errors were encountered: