SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.
Move triad handles published for scenarios (move_x, move_rz…); s33 (Move opens at 0, the X arrow moves along X only) enabled
bherbrucka76239169760
diff --git a/crates/ui-egui/src/gizmo.rs b/crates/ui-egui/src/gizmo.rsindex 014c8099ec..a176d1f415 100644--- a/crates/ui-egui/src/gizmo.rs+++ b/crates/ui-egui/src/gizmo.rs@@ -247,6 +247,12 @@ pub fn show(ui: &mut egui::Ui, painter: &egui::Painter, proj: &Proj, id: egui::Ilet l = mm_per_px(proj, t.center)? * LEN_PX;LAST.with(|x| *x.borrow_mut() = Some((t.center, l)));let sh = shapes(proj, t, l)?;+ // Handles by name for scenarios ("move_x", "move_rz", "move_ball"…).+ for n in ["x", "y", "z", "xy", "yz", "xz", "rx", "ry", "rz", "ball"] {+ if let Some(q) = handle_point(n, Vec3::ZERO, 60.0).and_then(|p| proj.to_screen(p)) {+ crate::scenario::publish_handle(&format!("move_{n}"), q);+ }+ }let state: Option<State> = ui.data(|d| d.get_temp(id));let pointer = ui.input(|i| i.pointer.hover_pos());let hovered = if state.is_none() { pointer.filter(|p| proj.rect.contains(*p)).and_then(|p| hit(&sh, p)) } else { None };diff --git a/crates/ui-egui/tests/scenarios.rs b/crates/ui-egui/tests/scenarios.rsindex 2bcb9e32e0..9ff3d5d66b 100644--- a/crates/ui-egui/tests/scenarios.rs+++ b/crates/ui-egui/tests/scenarios.rs@@ -49,7 +49,8 @@ scenarios!(s23_configurations,s24_motion_study,s25_autosave_recovery,- s27_move_triad+ s27_move_triad,+ s33_move_x_arrow,);/// Scenarios written ahead of their fixes or features (the user's open bugs): run with@@ -67,7 +68,6 @@ macro_rules! pending {pending!(s31_sketch_on_face_projects: "user bug: a sketch on a face projects its loops as reference (solvecraft-sketch)",s32_cut_in_active_component: "user bug: a cut in the active component leaves others alone (solvecraft-params)",- s33_move_x_arrow: "user bug: Move opens at 0 and its X arrow moves along X only (solvecraft-ui)",s34_component_move_carries_sketches: "user bug: moving a component carries its sketches (solvecraft-repo)",- s30_pattern_a_hole: "a hole patterned as a feature gives one hole, not three (solvecraft-ui)",+ s30_pattern_a_hole: "the dialog sends the hole as a feature; the engine's pattern of a blind hole cuts too little (one hole short)",);