-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - Add 's (state) lifetime to Fetch
#2515
Conversation
Right, I think I now understand these changes (and the similar changes for the render rework) To be clear, this change is only useful for functions which use direct world access, right? I.e. this has no effect for within systems (since they cannot make any assumptions about how long the system's state lasts). |
Yea this change is only necessary for when you're working with direct world access as the To be even more clear: nothing in bevy main currently needs this change, only the renderer rework and relations seems to want it afaict |
From render rework : https://github.com/cart/bevy/blob/6604d473b45c01415a19e765e628e793128a7267/crates/bevy_ecs/src/query/fetch.rs#L48 I would be for merging that now, it would remove some changes from the render rework |
bors r+ |
Fetch
Fetch
Allows iterators to return things that borrow data from
QueryState
, needed this in my relations PR figure might be worth landing separately maybe