From 2c3fad774448b4a8296b1a62fc624d45f66bebb8 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Mon, 22 May 2023 11:53:28 +0200 Subject: [PATCH] Don't return new model path from `Viewer::draw` I'm about to remove the GUI that can produce it. --- crates/fj-viewer/src/viewer.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/crates/fj-viewer/src/viewer.rs b/crates/fj-viewer/src/viewer.rs index bc6540e1c..365de94ec 100644 --- a/crates/fj-viewer/src/viewer.rs +++ b/crates/fj-viewer/src/viewer.rs @@ -1,5 +1,3 @@ -use std::path::PathBuf; - use fj_interop::processed_shape::ProcessedShape; use fj_math::Aabb; use tracing::warn; @@ -119,7 +117,7 @@ impl Viewer { pixels_per_point: f32, egui_input: egui::RawInput, gui_state: GuiState, - ) -> Option { + ) { let aabb = self .shape .as_ref() @@ -128,7 +126,7 @@ impl Viewer { self.camera.update_planes(&aabb); - let new_model_path = self.gui.update( + self.gui.update( pixels_per_point, egui_input, &mut self.draw_config, @@ -145,7 +143,5 @@ impl Viewer { ) { warn!("Draw error: {}", err); } - - new_model_path } }