forked from 1b-agent/opencadstudio-upstream
Show active tracking reference tooltip
This commit is contained in:
1 parent
f1bc5f2cae
commit
a06e8a7a69
7 files changed
+144
-1
No files matched your search
@@ -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> {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user