Show active tracking reference tooltip

This commit is contained in:
gianlucafiore committed 2026-08-08 23:09:06 -03:00
1 parent f1bc5f2cae
commit a06e8a7a69
7 files changed
+144 -1

No files matched your search

+2
View File
@@ -255,6 +255,7 @@ impl OpenCADStudio {
{
self.snapper.clear_tracking();
self.otrack_active = None;
self.otrack_kind = None;
}
if let Some(started) = perf_started {
let elapsed_ms = started.elapsed().as_secs_f64() * 1000.0;
@@ -280,6 +281,7 @@ impl OpenCADStudio {
pub(in crate::app) fn reset_tracking_after_point(&mut self) {
self.snapper.clear_tracking();
self.otrack_active = None;
self.otrack_kind = None;
}
fn update_inner(&mut self, msg: Message) -> Task<Message> {
+2
View File
@@ -1083,6 +1083,7 @@ impl OpenCADStudio {
};
self.otrack_active = otrack_hit.map(|hit| (hit.base, hit.dir));
self.otrack_kind = otrack_hit.map(|hit| hit.kind);
let mut snapped = if let Some(hit) = otrack_hit {
hit.aligned
@@ -1519,6 +1520,7 @@ impl OpenCADStudio {
}
};
self.otrack_active = otrack_hit.map(|h| (h.base, h.dir));
self.otrack_kind = otrack_hit.map(|h| h.kind);
// Parallel snap: with nothing else snapped or tracked, lock
// the point onto the line through last_point parallel to the