forked from 1b-agent/opencadstudio-upstream
Temporarily suppress Ortho mode during RECTANG commands
This commit is contained in:
1 parent
3666c7fa69
commit
a431e02378
4 files changed
+25
-1
No files matched your search
@@ -1674,13 +1674,18 @@ impl OpenCADStudio {
|
||||
self.focus_cmd_input()
|
||||
}
|
||||
|
||||
/// Restore the tangent snap state that was in effect before the command started.
|
||||
/// Restore the tangent-snap / ortho state that was in effect before the command started.
|
||||
fn restore_pre_cmd_tangent(&mut self) {
|
||||
if let Some(was_on) = self.pre_cmd_tangent.take() {
|
||||
if !was_on {
|
||||
self.snapper.enabled.remove(&crate::snap::SnapType::Tangent);
|
||||
}
|
||||
}
|
||||
if self.rect_suppressed_ortho {
|
||||
self.rect_suppressed_ortho = false;
|
||||
self.ortho_mode = true;
|
||||
self.polar_mode = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user