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

Do not queue sprites/meshes if there are no views #13

Merged
merged 2 commits into from
Jul 1, 2021

Conversation

superdump
Copy link

In my minkraft project I generate a bunch of blocky voxel chunks before spawning the character and camera to ensure there is ground for them to stand on. Unconditionally calling view_meta.uniforms.binding() assumes there are views and therefore there is a uniform buffer to use in the binding. So without this check, if there are not yet cameras in the scene, this call panics.

@cart cart merged commit c16a030 into cart:pipelined-rendering Jul 1, 2021
cart pushed a commit that referenced this pull request Jul 24, 2021
* bevy_sprite2/_pbr2: Do not queue sprites/meshes if there are no views
cart pushed a commit that referenced this pull request Jul 24, 2021
* bevy_sprite2/_pbr2: Do not queue sprites/meshes if there are no views
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants