mirror of
https://github.com/hannobraun/Fornjot
synced 2025-09-29 12:38:14 +00:00
Collapse if
statement
This commit is contained in:
parent
b062ca0fa7
commit
acc8708e5c
@ -91,10 +91,10 @@ impl Pipelines {
|
||||
self.mesh_triangles.draw(geometry, render_pass);
|
||||
}
|
||||
|
||||
if let Some(pipeline) = self.mesh_lines.as_ref() {
|
||||
if config.draw_mesh_lines {
|
||||
pipeline.draw(geometry, render_pass);
|
||||
}
|
||||
if let Some(pipeline) = self.mesh_lines.as_ref()
|
||||
&& config.draw_mesh_lines
|
||||
{
|
||||
pipeline.draw(geometry, render_pass);
|
||||
};
|
||||
}
|
||||
RenderMode::Point => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user