fix: align dynamic angle input with drawing units

This commit is contained in:
Hakan Seven committed 2026-09-17 09:50:41 +03:00
1 parent 58405025ee
commit 65c0fe5494
10 files changed
+100 -35

No files matched your search

+2 -2
View File
@@ -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
}