From 07f3ab21a1289d032dd0fa84109fc03fd9f6eddc Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 6 Jun 2023 12:27:08 +0200 Subject: [PATCH] Remove vestigial draw setting for debug rendering --- crates/fj-viewer/src/graphics/draw_config.rs | 4 ---- crates/fj-viewer/src/viewer.rs | 7 ------- crates/fj-window/src/display.rs | 3 --- 3 files changed, 14 deletions(-) diff --git a/crates/fj-viewer/src/graphics/draw_config.rs b/crates/fj-viewer/src/graphics/draw_config.rs index ef54108f7..bed33832d 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 79a0444eb..b99936d6d 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 f02f731f9..93fd1fab0 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 {