diff --git a/crates/fj-viewer/src/graphics/draw_config.rs b/crates/fj-viewer/src/graphics/draw_config.rs index ef54108f75..bed33832d3 100644 --- a/crates/fj-viewer/src/graphics/draw_config.rs +++ b/crates/fj-viewer/src/graphics/draw_config.rs @@ -6,9 +6,6 @@ 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 { @@ -16,7 +13,6 @@ impl Default for DrawConfig { Self { draw_model: true, draw_mesh: false, - draw_debug: false, } } } diff --git a/crates/fj-viewer/src/viewer.rs b/crates/fj-viewer/src/viewer.rs index 79a0444eb6..b99936d6d1 100644 --- a/crates/fj-viewer/src/viewer.rs +++ b/crates/fj-viewer/src/viewer.rs @@ -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()); diff --git a/crates/fj-window/src/display.rs b/crates/fj-window/src/display.rs index f02f731f93..93fd1fab01 100644 --- a/crates/fj-window/src/display.rs +++ b/crates/fj-window/src/display.rs @@ -73,9 +73,6 @@ pub fn display(mesh: Mesh>, invert_zoom: bool) -> Result<(), Error> { VirtualKeyCode::Key2 => { viewer.toggle_draw_mesh(); } - VirtualKeyCode::Key3 => { - viewer.toggle_draw_debug(); - } _ => {} }, Event::WindowEvent {