Repository navigation
Hole: an option to place several Single holes on one face by clicking (#12480) - #12481
Conversation
Preferences > Tools > Hole > Several holes on one face (hole_several, off by default). With it on, in Single placement a pick elsewhere on a face that already has a hole adds another hole, and a pick on a hole takes that one out; each hole keeps its own drag handle, and OK makes one Hole feature per hole. A round face split at its seam still gives one hole per pick. Off, a face takes one Single hole as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
theironchef
left a comment
There was a problem hiding this comment.
Checked merged onto main together with #12389 (Windows, MSVC, --profile ci): the hole_place, dialogs_hole and prefs::tests tests pass (390 in that filter, along with #12389's), clippy is clean, and cargo xtask lists is clean.
several is limited to a new Hole in Single placement (d.editing.is_none(), !opts.multiple), so editing an existing hole keeps its one place, and the default-off preference leaves today's behaviour alone. Picking a seam-split round face once yields one hole through grouped_selection (the other half never becomes one), which is the subtle case, and it's tested. This fits with #12493 (grouping the holes one OK makes): several holes on one face are exactly what that folder groups. Looks good to me.
0debd97
A new option, Preferences › Tools › Hole › Several holes on one face, lets the Hole dialog's Single placement put several holes on one face by clicking: a pick elsewhere on the face adds a hole, and a pick on a hole takes that one out.
Fixes #12480
Problem
In Single placement a face takes one hole. A second pick on the same face takes the first hole out (or moves it, with "Move by click or drag"), so several holes on one face needed a sketch with points and Multiple placement, or one Hole dialog per hole.
Change
hole_several(off by default), shown with the other Hole options on the Tools page, found by Preferences search, and settable overui.prefs.crates/ui-egui/src/hole_place.rs):hole:<n>);dialogs.rs), as Single placement already does for holes on different faces.assets/locales/pending/hole-several-per-face.json, with every complete catalog (ar, he, ja, vi, zh) and German.Changes a default: no
A new preference, off by default; with it off, picks behave exactly as before.
Validation
hole_place_ui_tests:with_several_holes_on_a_face_a_pick_adds_one_and_a_pick_on_a_hole_takes_it_out: three picks on one face, remove the middle one, drag the second handle, OK; two Hole features, drilled where expected.several_holes_on_a_round_face_are_one_per_pick: two picks on a cylinder's side make two holes.snaps_and_moves_are_off_by_default_and_picks_behave_as_beforenow also checks the new option is off by default.cargo test -p solidcraft-ui-egui --lib -- hole_place_ui_tests prefs i18n: 363 passed.cargo clippy -p solidcraft-ui-egui --all-targets -D warnings,cargo fmt,cargo xtask listsandcargo xtask i18n --checkare clean.cargo xtask ciwas not run locally (it runs out of memory on this machine).Evidence
🤖 Generated with Claude Code
Summary by CodeRabbit