Skip to content

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

Merged
cart merged 2 commits intocart:pipelined-renderingfrom
superdump:dont-queue-if-no-views
Jul 1, 2021
Merged

Do not queue sprites/meshes if there are no views#13
cart merged 2 commits intocart:pipelined-renderingfrom
superdump:dont-queue-if-no-views

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