forked from 1b-agent/opencadstudio-upstream
fix(settings): cover SnapType::ObjectPick in persisted-mode match
PR #80 added the internal SnapType::ObjectPick variant, which left the exhaustive snap_id match in the settings module non-exhaustive and broke the build after the merge. Map it to a stable id; it is not a user-toggleable OSNAP mode, so it never enters SNAP_ORDER or the persisted set. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
1 parent
6a70e99dd5
commit
e6ab0e70ac
1 file changed
+3
@@ -46,6 +46,9 @@ fn snap_id(s: SnapType) -> &'static str {
|
||||
SnapType::ApparentIntersection => "apparentintersection",
|
||||
SnapType::Parallel => "parallel",
|
||||
SnapType::Grid => "grid",
|
||||
// Internal plugin object-pick snap — not a user-toggleable OSNAP mode,
|
||||
// so it never enters SNAP_ORDER / the persisted set.
|
||||
SnapType::ObjectPick => "objectpick",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user