forked from 1b-agent/opencadstudio-upstream
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:
1 parent
ea860cab72
commit
9690d37d03
3 files changed
+19
No files matched your search
@@ -44,6 +44,11 @@ impl CadCommand for PlotWindowCommand {
|
||||
CmdResult::Cancel
|
||||
}
|
||||
|
||||
fn window_corner_pick(&self) -> bool {
|
||||
// Free rectangle corners — exempt from Ortho/Polar (#363/#291 class).
|
||||
true
|
||||
}
|
||||
|
||||
fn on_mouse_move(&mut self, pt: DVec3) -> Option<WireModel> { let pt = pt.as_vec3();
|
||||
let p1 = self.p1?.as_vec3();
|
||||
// Draw the selection rectangle.
|
||||
|
||||
Reference in new issue
Block a user