Fix clippy error

This commit is contained in:
Marco Buono 2023-10-18 01:09:54 -03:00
parent d4ad6253ad
commit 4e4d79033a

View file

@ -642,17 +642,15 @@ pub fn queue_material_meshes<M: Material>(
batch_range: 0..1, batch_range: 0..1,
dynamic_offset: None, dynamic_offset: None,
}); });
} else { } else if forward {
if forward { opaque_phase.add(Opaque3d {
opaque_phase.add(Opaque3d { entity: *visible_entity,
entity: *visible_entity, draw_function: draw_opaque_pbr,
draw_function: draw_opaque_pbr, pipeline: pipeline_id,
pipeline: pipeline_id, distance,
distance, batch_range: 0..1,
batch_range: 0..1, dynamic_offset: None,
dynamic_offset: None, });
});
}
} }
} }
AlphaMode::Mask(_) => { AlphaMode::Mask(_) => {