Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
326a2d2
Placement handles: a Spec with places, the dialog kept in the app (#6…
dannyow Oct 27, 2026
9550f2a
Hole: the markers are a Spec under place_gizmo (#6818)
dannyow Oct 27, 2026
d59a2b7
Placement handles, Hole: fixes from the review (#6818)
dannyow Oct 27, 2026
a05605c
Hole: a reference edge holds the hole to its line, and the marker sho…
dannyow Oct 27, 2026
14f51e1
Hole: reference edges hold only the hole they place (#6818)
dannyow Oct 29, 2026
13c4495
Placement handles: a marker's press, hover and look go by a stable id…
dannyow Oct 29, 2026
dee38d4
Hole: the marker tests prove what they claim (#6818)
dannyow Oct 29, 2026
be92ffa
Placement handles: a place held still takes no press, so the view kee…
dannyow Oct 29, 2026
5266c70
Hole: tests for the marker's cursor, Select Other yielding to it and …
dannyow Oct 29, 2026
7bc655d
Hole: a drag along one reference edge keeps the measured distance, no…
dannyow Nov 3, 2026
c2725f3
Hole: a held hole's freedom follows a design change in the same frame…
dannyow Nov 4, 2026
e93ec9e
Hole: a pick a held hole's line cannot reach says why instead of doin…
dannyow Nov 4, 2026
5fe383e
Hole: a held hole that cannot follow says so on a drag too, until the…
dannyow Nov 4, 2026
045a891
Hole: a hole on a curved face keeps its marker, standing on the face'…
dannyow Nov 4, 2026
48546dc
Hole: a tapped hole's dragged outline is its tap drill, not the hidde…
dannyow Nov 4, 2026
e1104c4
Hole: where two markers' reaches overlap, the nearer one takes the pr…
dannyow Nov 4, 2026
04a7a00
Hole: the held-line refusal reads as guidance, with no Create Issue (…
dannyow Nov 4, 2026
557053d
Hole: a hole on a curved face takes the face's normal before a stored…
dannyow Nov 4, 2026
10bc3e9
Hole: the overlapping markers' test clicks its second hole clear of t…
dannyow Nov 5, 2026
f1b12bb
Hole: several holes on one face keep their markers through the shared…
dannyow Nov 7, 2026
b6b834c
Placement handles: a Spec says where its place is kept (#4384)
dannyow Oct 27, 2026
7987c64
claim: #4384
dannyow Nov 1, 2026
5db51e9
Placement handles: Box, Cylinder, Cone, Sphere, Torus and Coil (#4384)
dannyow Nov 1, 2026
0a7c3ed
Placement handles: a dropped Box is written in the design's unit
dannyow Nov 3, 2026
76b22bd
Control protocol: a Single hole's markers follow hole_moves, not Plac…
dannyow Nov 3, 2026
ceeb937
Placement handles: a Box stands only on a face it overlaps, square to…
dannyow Nov 4, 2026
36d6baf
Empty commit: GitHub did not register the push of 68c2a965c to this PR
dannyow Nov 4, 2026
f68f573
Placement handles: a typed Box is not dropped where a round wall's wa…
dannyow Nov 4, 2026
6245b3a
Placement handles: a Sphere, Torus, Cone or Coil moved by its marker …
dannyow Nov 4, 2026
fd4d63b
Placement handles: a dropped Box keeps its size expressions, so it st…
dannyow Nov 4, 2026
2a1c017
Placement handles: a Cylinder held by one reference edge keeps its ty…
dannyow Nov 4, 2026
37133e8
Placement handles: a dropped Box reads a bare size expression in the …
dannyow Nov 4, 2026
6834296
Placement handles: the marker reads a bare size in the design's unit,…
dannyow Nov 4, 2026
433dea5
Placement handles: an empty placement field is 0 for the marker, as O…
dannyow Nov 4, 2026
15e8120
Placement handles: the docs name Preferences > Tools and the nanometr…
dannyow Nov 4, 2026
5843fd1
Placement handles: the marker reads a size field as OK does, a decima…
dannyow Nov 4, 2026
84ded3f
Placement handles: a Cylinder held by one reference edge keeps its ty…
dannyow Nov 4, 2026
6a3de4c
Placement handles: a typed Box's drop on a curved face asks every bod…
dannyow Nov 5, 2026
79e35e6
Merge main into the placement handles for primitives
dannyow Nov 7, 2026
607a1dd
Merge main into the placement stack: hole_place keeps main's holes_ma…
dannyow Nov 8, 2026
009132e
Merge main into the placement stack: hole_place keeps main's holes_ma…
dannyow Nov 8, 2026
96d618c
Merge main into the placement stack: the stack's calls use solidcraft…
dannyow Nov 8, 2026
ac71dfd
Merge main into the placement stack: the stack's calls use solidcraft…
dannyow Nov 8, 2026
dc2a2d2
Merge main into the placement stack: place_gizmo takes Tokens from so…
dannyow Nov 8, 2026
048367b
Merge main into the placement stack: place_gizmo takes Tokens from so…
dannyow Nov 8, 2026
8f36a9d
Merge remote-tracking branch 'origin/main' into place-source-4384
dannyow Nov 10, 2026
d9817c6
Merge place-source-4384 (with main) into primitives-4384
dannyow Nov 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions assets/locales/pending/primitive-handles.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"en": {
"Drag to place it on another face.": "Drag to place it on another face."
},
"ar": {
"Drag to place it on another face.": "اسحب لوضعه على وجه آخر."
},
"de": {
"Drag to place it on another face.": "Ziehen, um es auf eine andere Fläche zu setzen."
},
"he": {
"Drag to place it on another face.": "יש לגרור כדי להציב אותו על פאה אחרת."
},
"ja": {
"Drag to place it on another face.": "ドラッグして別の面に配置します。"
},
"ko": {
"Drag to place it on another face.": "드래그하여 다른 면에 배치합니다."
},
"pl": {
"Drag to place it on another face.": "Przeciągnij, aby umieścić go na innej ścianie."
},
"vi": {
"Drag to place it on another face.": "Kéo để đặt nó lên một bề mặt khác."
},
"zh": {
"Drag to place it on another face.": "拖动以将其放置到另一个面上。"
}
}
3 changes: 2 additions & 1 deletion crates/ui-egui/src/canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,11 @@ pub fn show(app: &mut SolveApp, ui: &mut egui::Ui, painter: &egui::Painter, proj
return;
}
// A cylinder's values are typed in its window; its distances from its reference edges
// (#6380) are shown and typed on the canvas, as a hole's.
// (#6380) are shown and typed on the canvas, as a hole's, then its placement handles drawn.
if matches!(d.kind, Kind::Primitive { cmd: "solid.cylinder", .. }) {
crate::hole_refs::canvas(app, ui, painter, proj, &mut d);
app.dialog = Some(d);
crate::place_gizmo::show(app, ui, painter, proj);
return;
}
if let Some((base, dir)) = anchor(app, &d)
Expand Down
38 changes: 0 additions & 38 deletions crates/ui-egui/src/dialogs_plastic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,44 +434,6 @@ pub fn for_feature(app: &SolveApp, kind: &FeatureKind) -> Option<(Kind, Vec<SelI
Some((Kind::Plastic(pl), inputs, extra))
}

/// The placement handles' frame for a feature placed through its first input (a face place): the
/// picked point and the direction the feature grows, the picked face's normal, else the stored
/// `direction`.
pub(crate) fn handle_frame(app: &SolveApp, d: &crate::dialogs::Dialog) -> Option<(Vec3, Vec3)> {
let Sel::Face { body, index, point } = d.inputs.first()?.items.first()? else { return None };
let n = crate::dialogs::planar_face(&app.session, body, *index)
.map(|(_, n)| n)
.or_else(|| d.extra.get("direction").and_then(crate::dialogs::vec3_of))
.and_then(|n| n.normalized())?;
Some((*point, n))
}

/// The placement handles' move for a feature placed through its first input: re-place it where a
/// click with `hits` (the pick under the pointer) would (snapped to a sketch point as a click is
/// when the input takes points), with the stored `direction` and in-face `along` carried onto the
/// new face. False when nothing there can take it.
pub(crate) fn handle_move(app: &SolveApp, d: &mut crate::dialogs::Dialog, hits: &[crate::viewport::Hit]) -> bool {
use crate::place_gizmo::{angle_of, dir_at};
let s = &app.session;
let turned = handle_frame(app, d).and_then(|(_, n)| d.extra.get("along").and_then(crate::dialogs::vec3_of).map(|a| angle_of(a, n)));
let Some(to) = crate::place_gizmo::face_pick(d, s, hits) else { return false };
if let Sel::Face { body, index, .. } = &to
&& let Some((_, nn)) = crate::dialogs::planar_face(s, body, *index)
{
if d.extra.contains_key("direction") {
d.extra.insert("direction".into(), pt(nn));
}
if let Some(a) = turned {
d.extra.insert("along".into(), pt(dir_at(nn, a)));
}
}
if let Some(inp) = d.inputs.first_mut() {
inp.items = vec![to];
}
d.error = None;
true
}

#[cfg(test)]
#[path = "dialogs_plastic_tests.rs"]
mod tests;
47 changes: 35 additions & 12 deletions crates/ui-egui/src/hole_refs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,28 @@ fn framed(s: &Session, d: &Dialog, at: Vec3, edges: [Option<Vec3>; 2]) -> Option
})
}

/// Let go of the reference edges the place cannot be measured from any more (after a move to
/// another body, say), as the command would refuse them; the others are kept and measured again.
pub(crate) fn keep_reachable(s: &Session, d: &mut Dialog) {
let Some(at) = place(d) else { return };
let Some(dir) = direction(s, d, at) else { return };
let world = crate::open_meshing::session_world(s);
for (k, edge) in edges(d).into_iter().enumerate() {
let Some(p) = edge else { continue };
if reference_frame(&world, at, dir, &[(p, None)], true).is_ok() {
continue;
}
if let Some(inp) = REFERENCES.get(k).and_then(|label| d.inputs.iter_mut().find(|i| i.label == *label)) {
inp.items.clear();
}
if let Some(refs) = refs_mut(d) {
refs.distance[k].clear();
refs.exact[k] = None;
refs.shown[k] = None;
}
}
}

/// The face input's item the reference edges place: the first face pick (see [`place`]). The
/// edges place that one hole only; OK refuses them with more than one.
fn place_item(d: &Dialog) -> Option<usize> {
Expand All @@ -214,16 +236,17 @@ fn place_item(d: &Dialog) -> Option<usize> {
/// What the picked reference edges leave the hole at item `i` of the face input free to do: with
/// one edge, along it at its distance; with two, anywhere again, a move then setting both
/// distances (as it did before any edge was picked); with none, anywhere. Only the hole the edges
/// place (see [`place_item`]) is held; another hole in the same dialog moves anywhere. Read from
/// place (see [`place_item`]) is held; another hole in the same dialog moves anywhere. A
/// Cylinder's reference edges hold it the same way. Read from
/// the frame last found for these edges (`sync` keeps it current), or found again when the design
/// changed since; an edge picked but not framed yet, or a frame that failed, leaves the hole free.
pub(crate) fn freedom(s: &Session, d: &Dialog, i: usize) -> Freedom {
let Kind::Hole { opts, .. } = &d.kind else { return Freedom::Plane };
let Some(refs) = refs(d).filter(|_| takes(d)) else { return Freedom::Plane };
if place_item(d) != Some(i) {
return Freedom::Plane;
}
let edges = edges(d);
let Some(f) = opts.refs.frame.as_ref().filter(|f| f.edges == edges) else { return Freedom::Plane };
let Some(f) = refs.frame.as_ref().filter(|f| f.edges == edges) else { return Freedom::Plane };
let fresh = if f.revision == s.revision { None } else { Some(place(d).and_then(|at| framed(s, d, at, edges))) };
match fresh.as_ref().unwrap_or(&f.frame).as_ref().map(|(fr, _)| fr.lines.as_slice()) {
Some([a]) => Freedom::Line(a.along),
Expand All @@ -242,8 +265,8 @@ pub(crate) enum Stuck {
}

/// Move the hole at item `i` of the face input toward `near` as far as its one reference edge
/// lets it: onto the line at the typed distance from it, nearest `near`. The typed distance
/// stays as it is, an expression included, so a drag never rewrites it.
/// lets it: onto the line at the typed distance from it, nearest `near` (a Cylinder's base with
/// it). The typed distance stays as it is, an expression included, so a drag never rewrites it.
pub(crate) fn drag_to(s: &Session, d: &mut Dialog, i: usize, near: Vec3) -> Result<(), Stuck> {
if place_item(d) != Some(i) {
return Err(Stuck::Not);
Expand All @@ -252,19 +275,19 @@ pub(crate) fn drag_to(s: &Session, d: &mut Dialog, i: usize, near: Vec3) -> Resu
if picked.len() != 1 {
return Err(Stuck::Not);
}
let Kind::Hole { opts, .. } = &d.kind else { return Err(Stuck::Not) };
let values: Option<Vec<f64>> = picked.iter().map(|k| model_text(&opts.refs, *k).and_then(|e| s.doc.eval(e, ValueKind::Length).ok())).collect();
let Some(refs) = refs(d).filter(|_| takes(d)) else { return Err(Stuck::Not) };
let values: Option<Vec<f64>> = picked.iter().map(|k| model_text(refs, *k).and_then(|e| s.doc.eval(e, ValueKind::Length).ok())).collect();
let Some(to) = values.and_then(|v| f.place(near, &v).ok()) else { return Err(Stuck::Not) };
if !on_reference_face(&crate::open_meshing::session_world(s), &f, to) {
return Err(Stuck::OffFace);
}
let Some(Sel::Face { point, .. }) = d.inputs.first_mut().and_then(|inp| inp.items.get_mut(i)) else { return Err(Stuck::Not) };
*point = to;
if !matches!(d.inputs.first().and_then(|inp| inp.items.get(i)), Some(Sel::Face { .. })) {
return Err(Stuck::Not);
}
set_place(d, to);
// In step already: the place moved by its distances, so there is nothing to measure again.
let edges = edges(d);
if let Kind::Hole { opts, .. } = &mut d.kind
&& let Some(sn) = opts.refs.seen.as_mut()
{
if let Some(sn) = refs_mut(d).and_then(|r| r.seen.as_mut()) {
sn.place = to;
sn.edges = edges;
}
Expand Down
106 changes: 94 additions & 12 deletions crates/ui-egui/src/place_gizmo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,20 @@
//! [`spec`] picks the file by the dialog kind. The handles are published as `<name>:position` and
//! `<name>:rotate` for `ui.handles`.
//!
//! The handles are behind the `placement_handles` preference (Preferences > Design > Placement), off by
//! The handles are behind the `placement_handles` preference (Preferences > Tools > Placement handles), off by
//! default: off, a feature is placed by its click only, as before, and its Position input takes faces
//! only. A Single hole's markers (#6818) stay behind Create Hole › Move holes by clicking or dragging
//! instead, as the hole's own handle was; each tool's [`Spec::serves`] says what turns it on.
//!
//! A tool has one place (a Rest) or one per item of its first input (a Single hole, a marker on each
//! hole placed): [`Spec::places`] lists them, and a drag or a click names the place by its key.
//! hole placed): [`Spec::place`] says where they come from, and a drag or a click names the place by
//! its key. Most tools keep their place as the face item of one input ([`PlaceSource::Input`]): the
//! marker reads it from there and moves it by replacing the item, as a click on the input does.

mod boss;
mod hole;
mod look;
mod primitive;
mod rest;
mod snap_fit;

Expand Down Expand Up @@ -67,12 +70,8 @@ pub(crate) struct Spec {
/// (a Single hole's; `turn` is then ignored). Off: one place, `<name>:position`, and the ring
/// if any.
pub many: bool,
/// The places the handles stand at.
pub places: fn(&SolveApp, &Dialog) -> Vec<Place>,
/// Re-place the feature at `key` where a click with these hits (the pick under the pointer,
/// taken while the dialog is open, so it snaps as a click does) would put it; false when
/// nothing there can take it.
pub move_to: fn(&SolveApp, &mut Dialog, &[Hit], usize) -> bool,
/// Where the places the handles stand at come from, and how a drag moves one.
pub place: PlaceSource,
/// What a click (a press without a drag) on the marker at `key` does: a Single hole is taken
/// out. `None`: a click on the marker does nothing.
pub click: Option<fn(&SolveApp, &mut Dialog, usize)>,
Expand All @@ -85,6 +84,81 @@ pub(crate) struct Spec {
pub turn: Option<Turn>,
}

/// Where a tool keeps its place, so where the marker reads it and how a drag moves it.
pub(crate) enum PlaceSource {
/// The face item of the dialog's input `n` (a Rest's, Boss's or Snap Fit's Position input):
/// the picked point, growing along the face's normal, else the stored `direction` when the
/// face is gone. A drag replaces the item where a click on that input would put it, snapped
/// as the click is, carrying `direction` and the in-face `along` onto the new face.
Input(usize),
/// The tool's own: `places` lists them; `move_to` re-places the one at `key` where a click
/// with these hits (the pick under the pointer, taken while the dialog is open, so it snaps
/// as a click does) would put it, false when nothing there can take it.
Own { places: fn(&SolveApp, &Dialog) -> Vec<Place>, move_to: fn(&SolveApp, &mut Dialog, &[Hit], usize) -> bool },
}

impl Spec {
/// The places the handles stand at.
fn places(&self, app: &SolveApp, d: &Dialog) -> Vec<Place> {
match self.place {
PlaceSource::Input(i) => one(input_frame(app, d, i)),
PlaceSource::Own { places, .. } => places(app, d),
}
}

/// Re-place the feature at `key` where a click with these hits would put it.
fn move_to(&self, app: &SolveApp, d: &mut Dialog, hits: &[Hit], key: usize) -> bool {
match self.place {
PlaceSource::Input(i) => input_move(app, d, hits, i),
PlaceSource::Own { move_to, .. } => move_to(app, d, hits, key),
}
}

/// The input whose rules the marker's pick follows: the place's, else the first (a Single
/// hole's places are the items of its first input).
fn place_input(&self) -> usize {
match self.place {
PlaceSource::Input(i) => i,
PlaceSource::Own { .. } => 0,
}
}
}

/// The place of a tool kept in its input `i`: the face item's point and the direction the
/// feature grows, the face's normal, else the stored `direction`.
fn input_frame(app: &SolveApp, d: &Dialog, i: usize) -> Option<(Vec3, Vec3)> {
let Sel::Face { body, index, point } = d.inputs.get(i)?.items.first()? else { return None };
let n = crate::dialogs::planar_face(&app.session, body, *index)
.map(|(_, n)| n)
.or_else(|| d.extra.get("direction").and_then(vec3_of))
.and_then(|n| n.normalized())?;
Some((*point, n))
}

/// The move of a tool kept in its input `i`: the item replaced where a click with `hits` would
/// put it (snapped to a sketch point as a click is when the input takes points), with the stored
/// `direction` and in-face `along` carried onto the new face. False when nothing there can take it.
fn input_move(app: &SolveApp, d: &mut Dialog, hits: &[Hit], i: usize) -> bool {
let s = &app.session;
let turned = input_frame(app, d, i).and_then(|(_, n)| d.extra.get("along").and_then(vec3_of).map(|a| angle_of(a, n)));
let Some(to) = face_pick(d, s, hits) else { return false };
if let Sel::Face { body, index, .. } = &to
&& let Some((_, nn)) = crate::dialogs::planar_face(s, body, *index)
{
if d.extra.contains_key("direction") {
d.extra.insert("direction".into(), pt(nn));
}
if let Some(a) = turned {
d.extra.insert("along".into(), pt(dir_at(nn, a)));
}
}
if let Some(inp) = d.inputs.get_mut(i) {
inp.items = vec![to];
}
d.error = None;
true
}

/// The ways a place can go on its face.
#[derive(Clone, Copy, Debug, PartialEq)]
pub(crate) enum Freedom {
Expand Down Expand Up @@ -114,12 +188,18 @@ pub(crate) fn one(frame: Option<(Vec3, Vec3)>) -> Vec<Place> {
frame.map(|(base, n)| Place { key: 0, base, n }).into_iter().collect()
}

/// Are the shared handles on (Preferences > Design > Placement handles)? The gate of every
/// Are the shared handles on (Preferences > Tools > Placement handles)? The gate of every
/// tool but the hole, whose markers keep the hole's own setting.
pub(crate) fn on(app: &SolveApp) -> bool {
app.preferences.placement_handles
}

/// A pick the shared handles take as a move: a Cylinder held by one reference edge moves along it
/// (see `primitive::pick_held`). Only with the handles on; off, the pick is the dialog's, as before.
pub(crate) fn pick_held(app: &SolveApp, d: &mut Dialog, sel: &Sel) -> bool {
on(app) && primitive::pick_held(app, d, sel)
}

/// The face place a click with `hits` would add to the dialog's first input: snapped to a sketch
/// point as a click is when the input takes points; none when nothing there is a face.
pub(crate) fn face_pick(d: &Dialog, s: &Session, hits: &[Hit]) -> Option<Sel> {
Expand All @@ -145,6 +225,7 @@ pub(crate) struct Turn {
static TOOLS: &[&Spec] = &[
&boss::SPEC,
&hole::SPEC,
&primitive::SPEC,
&rest::SPEC,
&snap_fit::SPEC,
];
Expand Down Expand Up @@ -346,7 +427,7 @@ pub(crate) fn show(app: &mut SolveApp, ui: &mut egui::Ui, painter: &egui::Painte
DRAWN.with(|h| h.borrow_mut().clear());
RING_ABOUT.with(|c| c.set(None));
let Some(sp) = app.dialog.as_ref().and_then(|d| spec(app, d)) else { return };
let places = |app: &SolveApp| app.dialog.as_ref().map(|d| (sp.places)(app, d)).unwrap_or_default();
let places = |app: &SolveApp| app.dialog.as_ref().map(|d| sp.places(app, d)).unwrap_or_default();
let t = Tokens::get();
let area = |c: Pos2| egui::Rect::from_center_size(c, vec2(2.0 * REACH, 2.0 * REACH));
let id = |what: &str| egui::Id::unique(("sc_place", sp.name, what));
Expand Down Expand Up @@ -377,10 +458,11 @@ pub(crate) fn show(app: &mut SolveApp, ui: &mut egui::Ui, painter: &egui::Painte
if r.dragged() {
crate::tool_modifiers::set_manipulator_dragging(true);
if let Some(p) = r.interact_pointer_pos() {
let was = app.dialog.as_mut().map(|d| std::mem::replace(&mut d.active, 0));
// The pick follows the place input's rules, whichever input is active.
let was = app.dialog.as_mut().map(|d| std::mem::replace(&mut d.active, sp.place_input()));
let hits = crate::viewport::pick(app, proj, p - off.unwrap_or_default());
with_dialog(app, |app, d| {
(sp.move_to)(app, d, &hits, pl.key);
sp.move_to(app, d, &hits, pl.key);
});
if let (Some(d), Some(was)) = (app.dialog.as_mut(), was) {
d.active = was;
Expand Down
5 changes: 2 additions & 3 deletions crates/ui-egui/src/place_gizmo/boss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use solidcore_record::Vec3;

use super::{Spec, circle, len};
use super::{PlaceSource, Spec, circle, len};
use crate::SolveApp;
use crate::dialogs::{Dialog, Kind};
use crate::dialogs_plastic::Pl;
Expand All @@ -14,8 +14,7 @@ pub(super) static SPEC: Spec = Spec {
snap_commands: &["plastic.boss"],
move_tip: "Drag to move the boss across the model. It snaps to sketch points on the face.",
many: false,
places: |app, d| super::one(crate::dialogs_plastic::handle_frame(app, d)),
move_to: |app, d, hits, _| crate::dialogs_plastic::handle_move(app, d, hits),
place: PlaceSource::Input(0),
click: None,
footprint,
freedom: super::anywhere,
Expand Down
5 changes: 2 additions & 3 deletions crates/ui-egui/src/place_gizmo/hole.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use solidcore_record::Vec3;
use solidcraft_engine::Sel;
use solidcraft_engine::geom::prelude::*;

use super::{Freedom, Place, Spec, circle, face_pick, len, vec3_of};
use super::{Freedom, Place, PlaceSource, Spec, circle, face_pick, len, vec3_of};
use crate::SolveApp;
use crate::dialogs::{Dialog, Kind};
use crate::viewport::Hit;
Expand All @@ -27,8 +27,7 @@ pub(super) static SPEC: Spec = Spec {
snap_commands: &[],
move_tip: "Drag to move the hole; click to remove it",
many: true,
places,
move_to,
place: PlaceSource::Own { places, move_to },
click: Some(|app, d, key| {
if crate::hole_place::several(app, d) {
crate::hole_place::several_change_item(&app.session, d, key, None);
Expand Down
Loading
Loading