Skip to content
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 camera_system to fix issue with late camera addition. #488

Merged
merged 1 commit into from
Oct 5, 2020
Merged

Update camera_system to fix issue with late camera addition. #488

merged 1 commit into from
Oct 5, 2020

Conversation

BorisBoutillier
Copy link
Contributor

This aims to fix #476.
Not sure if this is the best implementation for the fix.
As there is no AddedMut I was not able to do a standalone second query for added camera and their projection.

This version is solving the issue, I have checked with the modified sprite.rs/3d_scene.rs and my personal code.

Added an entry in the CHANGELOG

@Moxinilian Moxinilian added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen labels Sep 14, 2020
crates/bevy_render/src/camera/camera.rs Outdated Show resolved Hide resolved
@BorisBoutillier
Copy link
Contributor Author

I can't use the get() because then I ends up in "bevy_render::camera::camera::Camera already borrowed uniquely"
I have proposed another way to fix this, not sure if there is a better.
I'll look at the query_one.get() issue with Added separately.

@cart cart merged commit 219527e into bevyengine:master Oct 5, 2020
mrk-its pushed a commit to mrk-its/bevy that referenced this pull request Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Camera2dComponents spawned after frame 3 no more display anything.
3 participants