Live preview: the tool alone, the boolean only on OK, computed off the window thread (#1201)
The preview builds only the tool; the boolean runs once on OK, off the window thread, with a Computing label while it takes a while. Follow-up to #1020.
This commit is contained in:
1 parent
a261aaa841
commit
9935133b56
12 files changed
+343
-136
No files matched your search
@@ -199,6 +199,10 @@ fn edge_bisector(m: &Mesh, index: usize, p: Vec3) -> Option<Vec3> {
|
||||
|
||||
/// Draw the manipulator and the value box (called by the viewport after the model is drawn).
|
||||
pub fn show(app: &mut SolveApp, ui: &mut egui::Ui, painter: &egui::Painter, proj: &Proj) {
|
||||
// While OK computes, the inputs hold what it computes: no arrow to drag, no box to type in.
|
||||
if app.applying.is_some() {
|
||||
return;
|
||||
}
|
||||
let Some(mut d) = app.dialog.take() else { return };
|
||||
if matches!(d.kind, Kind::Assembly(_)) {
|
||||
crate::dialogs_assembly::overlay(app, painter, proj, &mut d);
|
||||
|
||||
Reference in new issue
Block a user