mirror of https://github.com/hannobraun/Fornjot
Don't return new model path from `Viewer::draw`
I'm about to remove the GUI that can produce it.
This commit is contained in:
parent
2d15ac0555
commit
2c3fad7744
|
@ -1,5 +1,3 @@
|
||||||
use std::path::PathBuf;
|
|
||||||
|
|
||||||
use fj_interop::processed_shape::ProcessedShape;
|
use fj_interop::processed_shape::ProcessedShape;
|
||||||
use fj_math::Aabb;
|
use fj_math::Aabb;
|
||||||
use tracing::warn;
|
use tracing::warn;
|
||||||
|
@ -119,7 +117,7 @@ impl Viewer {
|
||||||
pixels_per_point: f32,
|
pixels_per_point: f32,
|
||||||
egui_input: egui::RawInput,
|
egui_input: egui::RawInput,
|
||||||
gui_state: GuiState,
|
gui_state: GuiState,
|
||||||
) -> Option<PathBuf> {
|
) {
|
||||||
let aabb = self
|
let aabb = self
|
||||||
.shape
|
.shape
|
||||||
.as_ref()
|
.as_ref()
|
||||||
|
@ -128,7 +126,7 @@ impl Viewer {
|
||||||
|
|
||||||
self.camera.update_planes(&aabb);
|
self.camera.update_planes(&aabb);
|
||||||
|
|
||||||
let new_model_path = self.gui.update(
|
self.gui.update(
|
||||||
pixels_per_point,
|
pixels_per_point,
|
||||||
egui_input,
|
egui_input,
|
||||||
&mut self.draw_config,
|
&mut self.draw_config,
|
||||||
|
@ -145,7 +143,5 @@ impl Viewer {
|
||||||
) {
|
) {
|
||||||
warn!("Draw error: {}", err);
|
warn!("Draw error: {}", err);
|
||||||
}
|
}
|
||||||
|
|
||||||
new_model_path
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue