Temporarily suppress Ortho mode during RECTANG commands

This commit is contained in:
Karim Jerbi 2026-06-16 09:53:32 +01:00
commit a431e02378
4 changed files with 25 additions and 1 deletions

View file

@ -4098,6 +4098,10 @@ impl OpenCADStudio {
if self.ortho_mode {
self.polar_mode = false;
}
// If the user manually toggles ortho during a command that
// suppressed it (e.g. RECTANG), the toggle is permanent —
// don't restore the pre-command state when the command ends.
self.rect_suppressed_ortho = false;
Task::none()
}
Message::ToggleLineweightDisplay => {