Skip to content

Commit

Permalink
Fix bevyengine#187 . Multiple return instead of continue inside for l…
Browse files Browse the repository at this point in the history
…oops. (bevyengine#230)
  • Loading branch information
BorisBoutillier authored and BimDav committed Aug 26, 2020
1 parent 5a7fbb6 commit e79cf17
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ fn render_resources_node_system<T: RenderResources>(
// update uniforms info
for (uniforms, draw, _render_pipelines) in &mut query.iter() {
if !draw.is_visible {
return;
continue;
}

state
Expand All @@ -441,7 +441,7 @@ fn render_resources_node_system<T: RenderResources>(

for (uniforms, draw, mut render_pipelines) in &mut query.iter() {
if !draw.is_visible {
return;
continue;
}

setup_uniform_texture_resources::<T>(
Expand All @@ -459,7 +459,7 @@ fn render_resources_node_system<T: RenderResources>(
&mut |mut staging_buffer, _render_resource_context| {
for (uniforms, draw, mut render_pipelines) in &mut query.iter() {
if !draw.is_visible {
return;
continue;
}

state.uniform_buffer_arrays.setup_uniform_buffer_resources(
Expand All @@ -482,7 +482,7 @@ fn render_resources_node_system<T: RenderResources>(
let mut staging_buffer: [u8; 0] = [];
for (uniforms, draw, mut render_pipelines) in &mut query.iter() {
if !draw.is_visible {
return;
continue;
}

state.uniform_buffer_arrays.setup_uniform_buffer_resources(
Expand Down

0 comments on commit e79cf17

Please sign in to comment.