doonv / bevy_smooth_pixel_camera

Smooth pixel-perfect camera for Bevy
https://crates.io/crates/bevy_smooth_pixel_camera
Apache License 2.0
31 stars 3 forks source link

Panic upon closing the window #4

Open doonv opened 9 months ago

doonv commented 9 months ago

Upon closing the window, a panic occurs. Saying that the Window entity doesn't exist. This is a bug caused by https://github.com/bevyengine/bevy/issues/11874.

msvbg commented 9 months ago

Could it be an option to run the window systems in e.g. PreUpdate instead to avoid the panic? Or to use get_single instead of single as a defensive measure?