Merge branch 'feature/tracking-reference-tooltip'

This commit is contained in:
gianlucafiore 2026-08-08 23:23:06 -03:00
commit a8c9e3dd0c
7 changed files with 144 additions and 1 deletions

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> {

View file

@ -1144,6 +1144,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
@ -1639,6 +1640,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