fix(otrack): commit Extension intersection at tracked crossing on click

This commit is contained in:
gianlucafiore committed 2026-10-15 20:10:08 -03:00
1 parent dd3b18e550
commit 52e8cd1002
1 file changed
+8 -1
+8 -1
View File
@@ -4561,8 +4561,15 @@ impl OpenCADStudio {
if let Some(h) = otrack.filter(|_| {
// Match the hover path: preserve exact object snaps, but
// allow Extension to resolve a crossing with OTRACK.
!snap_hit.is_some_and(|s| s.snap_type != crate::snap::SnapType::Grid)
!snap_hit.is_some_and(|s| {
!matches!(
s.snap_type,
crate::snap::SnapType::Grid | crate::snap::SnapType::Extension
)
})
}) {
// Commit the actual OTRACK intersection, not the cursor
// projection onto Extension.
pt = h.aligned;
if clamp_world_xy {
pt.z = 0.0;