forked from 1b-agent/opencadstudio-upstream
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 <[email protected]>
This commit is contained in:
1 parent
58e4d696ba
commit
ec3161f7f7
2 files changed
+7
-10
No files matched your search
+3
-3
@@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user