fix(snap): unify snap aperture so OTRACK catch matches OSNAP

Tracking and polar pickup used the full crosshair-arm radius (60 px)
while OSNAP used the smaller ¼ radius, so the vector-intersection lock
grabbed over a much larger area than object snaps. Collapse to a single
osnap_radius_px shared by OSNAP, tracking, polar and extension; the
crosshair keeps following the cursor and the point snaps on contact.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Hakan Seven 2026-06-17 05:25:11 +03:00
commit ec3161f7f7
2 changed files with 7 additions and 10 deletions

View file

@ -2319,7 +2319,7 @@ impl OpenCADStudio {
self.polar_increment_deg,
vp_mat,
bounds,
self.snapper.snap_radius_px,
self.snapper.osnap_radius_px,
);
}
}
@ -2528,7 +2528,7 @@ impl OpenCADStudio {
self.polar_increment_deg,
view_proj,
bounds,
self.snapper.snap_radius_px,
self.snapper.osnap_radius_px,
);
}
}
@ -3125,7 +3125,7 @@ impl OpenCADStudio {
self.polar_increment_deg,
vp_mat,
bounds,
self.snapper.snap_radius_px,
self.snapper.osnap_radius_px,
);
}
}