forked from 1b-agent/opencadstudio-upstream
fix(otrack): commit Extension intersection at tracked crossing on click
This commit is contained in:
1 parent
dd3b18e550
commit
52e8cd1002
1 file changed
+8
-1
@@ -4561,8 +4561,15 @@ impl OpenCADStudio {
|
|||||||
if let Some(h) = otrack.filter(|_| {
|
if let Some(h) = otrack.filter(|_| {
|
||||||
// Match the hover path: preserve exact object snaps, but
|
// Match the hover path: preserve exact object snaps, but
|
||||||
// allow Extension to resolve a crossing with OTRACK.
|
// 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;
|
pt = h.aligned;
|
||||||
if clamp_world_xy {
|
if clamp_world_xy {
|
||||||
pt.z = 0.0;
|
pt.z = 0.0;
|
||||||
|
|||||||
Reference in new issue
Block a user