Skip to content

Commit

Permalink
Fix panic when no effect is present (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
djeedai authored May 18, 2024
1 parent eb669f5 commit 50915fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2861,6 +2861,10 @@ pub(crate) fn prepare_bind_groups(
render_pipeline: Res<ParticlesRenderPipeline>,
gpu_images: Res<RenderAssets<Image>>,
) {
if effects_meta.spawner_buffer.is_empty() || effects_meta.spawner_buffer.buffer().is_none() {
return;
}

{
#[cfg(feature = "trace")]
let _span = bevy::utils::tracing::info_span!("shared_bind_groups").entered();
Expand Down

0 comments on commit 50915fa

Please sign in to comment.