Skip to content

Commit

Permalink
Remove vestigial draw setting for debug rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Jun 6, 2023
1 parent bb9109d commit 07f3ab2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions crates/fj-viewer/src/graphics/draw_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@ pub struct DrawConfig {

/// Toggle for displaying the wireframe model
pub draw_mesh: bool,

/// Toggle for displaying model debug information
pub draw_debug: bool,
}

impl Default for DrawConfig {
fn default() -> Self {
Self {
draw_model: true,
draw_mesh: false,
draw_debug: false,
}
}
}
7 changes: 0 additions & 7 deletions crates/fj-viewer/src/viewer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,6 @@ impl Viewer {
}
}

/// Toggle the "draw debug" setting
pub fn toggle_draw_debug(&mut self) {
if self.renderer.is_line_drawing_available() {
self.draw_config.draw_debug = !self.draw_config.draw_debug;
}
}

/// Handle the shape being updated
pub fn handle_shape_update(&mut self, shape: ProcessedShape) {
self.renderer.update_geometry((&shape.mesh).into());
Expand Down
3 changes: 0 additions & 3 deletions crates/fj-window/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ pub fn display(mesh: Mesh<Point<3>>, invert_zoom: bool) -> Result<(), Error> {
VirtualKeyCode::Key2 => {
viewer.toggle_draw_mesh();
}
VirtualKeyCode::Key3 => {
viewer.toggle_draw_debug();
}
_ => {}
},
Event::WindowEvent {
Expand Down

0 comments on commit 07f3ab2

Please sign in to comment.