-
Notifications
You must be signed in to change notification settings - Fork 249
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
Update to work with bevy main (and eventually 0.8) #111
Conversation
This is broken as bevy#4402 landed |
Just messed with it a bit and it seems like this will require a bit of a more significant re-work now as the extract systems currently require mutable access to resources in the main world. |
Yes and using immutable |
@zimond I tried using the clone with |
I think some clones won't hurt the perf that much |
Hi! Thank you for the PR! I think cloning is fine for now. Maybe, if we see an issue with performance, we might want to wrap it into a |
Closing a window on this branch emits panic: let extracted_window = &world.get_resource::<ExtractedWindows>().unwrap().windows[&self.window_id]; thread 'main' panicked at 'no entry found for key' egui_node.rs:328:14 |
Hmm, I tried this let extracted_windows = &world.get_resource::<ExtractedWindows>().unwrap().windows;
let extracted_window =
if let Some(extracted_window) = extracted_windows.get(&self.window_id) {
extracted_window
} else {
return Ok(());
}; But now when I close the window the app continues to run with the window closed and says:
|
Any chance that this is an issue on the Bevy's end? Not really sure what can cause this in If it happens in every example, I'd suggest to try to reproduce it in a clean Bevy project. And if it reproduces there without |
@mvlabat It appears that it is indeed an issue with bevy: bevyengine/bevy#5384 |
Is this issue blocking this PR or has it been fixed? |
Definitely not a blocker for us. I don't know if it has been fixed in Bevy's main, but we'll merge this PR regardless once 0.8 is released |
Bevy 0.8's now out - I've just built this fork with it (opened a PR for it here DGriffin91#2) and everything seems to work fine 👍 |
Thank you for your help with the update! I'll release it soon |
This needs a more thorough review. But it looks like the examples are working, and it's working in at least one of my projects.