forked from 1b-agent/opencadstudio-upstream
fix: align dynamic angle input with drawing units
This commit is contained in:
1 parent
58405025ee
commit
65c0fe5494
10 files changed
+100
-35
No files matched your search
@@ -151,8 +151,8 @@ impl CadCommand for TorientCommand {
|
||||
|
||||
fn on_text_input(&mut self, text: &str) -> Option<CmdResult> {
|
||||
if let Step::AngleOrFirstPoint = self.step {
|
||||
let deg: f64 = text.trim().replace(',', ".").parse().ok()?;
|
||||
Some(self.commit_angle(Some(deg.to_radians())))
|
||||
let angle = crate::entities::common::parse_typed_angle(text)?;
|
||||
Some(self.commit_angle(Some(angle)))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user