Skip to content

Commit

Permalink
Fix #187 . Multiple return instead of continue inside for loops. (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
BorisBoutillier authored Aug 20, 2020
1 parent 268b520 commit 38d3da5
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 38d3da5

Please sign in to comment.