Revolve angle rotator (drag the arc end, 5 degree steps), right-click menu in the viewport (Repeat last command, commands for the selection, fit/home/undo), larger inline sketch dimension boxes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AS5Tn3xieewUSg3uxrMVdL
This commit is contained in:
bherbruckandClaude Opus 5.5 committed 2026-10-07 22:46:34 +00:00
1 parent 3229fd9740
commit 79a4194f6e
5 files changed
+208 -4

No files matched your search

+11
View File
@@ -10,6 +10,7 @@
pub mod browser;
pub mod canvas;
pub mod context_menu;
pub mod control;
pub mod dialogs;
pub mod gpu;
@@ -99,6 +100,8 @@ pub struct SolveApp {
pub dialog: Option<dialogs::Dialog>,
pub palette: palette::Palette,
pub preview: preview::PreviewState,
/// The last command started interactively (id, label), for Repeat.
pub last_command: Option<(String, String)>,
pub status: Option<(String, f64, bool)>,
pub quit_requested: bool,
pub frame_ms: f64,
@@ -127,6 +130,7 @@ impl SolveApp {
dialog: None,
palette: palette::Palette::default(),
preview: preview::PreviewState::default(),
last_command: None,
status: None,
quit_requested: false,
frame_ms: 0.0,
@@ -222,6 +226,12 @@ impl SolveApp {
return;
}
}
if let Some(spec) = solvecraft_engine::find_command(id)
&& (tools::Tool::for_command(id).is_some() || dialogs::Dialog::for_command(self, id).is_some())
&& id != "SketchCreate"
{
self.last_command = Some((spec.id.to_string(), spec.label.to_string()));
}
if let Some(t) = tools::Tool::for_command(id) {
self.tool = Some(t);
self.set_status(tools::hint(id), false);
@@ -486,6 +496,7 @@ impl SolveApp {
viewport::show(self, ui);
});
dialogs::show(self, ui.ctx());
context_menu::show(self, ui.ctx());
palette::popup(self, ui.ctx());
self.frame_ms = now_ms() - t0;
}