fix(view): window corner picks exempt from Ortho/Polar (#363)

ZOOM WINDOW's opposite corner was pinned to an axis with Ortho on,
collapsing the window to a line. Extend the #291 window_corner_pick
exemption to ZOOM WINDOW, PLOTWINDOW and WIPEOUT's rectangular mode
(polygon mode keeps the constraints — axis-aligned edges are a
legitimate use).

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
Hakan SevenandClaude Fable 5 committed 2026-07-21 23:14:08 +03:00
1 parent ea860cab72
commit 9690d37d03
3 files changed
+19

No files matched your search

+7
View File
@@ -107,6 +107,13 @@ impl CadCommand for WipeoutCommand {
}
}
fn window_corner_pick(&self) -> bool {
// Rectangular mode picks free window corners — exempt from Ortho/Polar
// (#363/#291 class). Polygon points keep the constraints (axis-aligned
// polygon edges are a legitimate use).
matches!(self.mode, WipeoutMode::Rectangular)
}
fn on_mouse_move(&mut self, pt: DVec3) -> Option<WireModel> { let pt = pt.as_vec3();
match &self.mode {
WipeoutMode::Rectangular => {