forked from 1b-agent/opencadstudio-upstream
Fix viewport dimension acquisition and preserve measurement scaling
This commit is contained in:
1 parent
369e0c9fc5
commit
2ee3782850
18 files changed
+957
-577
No files matched your search
@@ -223,6 +223,17 @@ impl CadCommand for LinearDimensionCommand {
|
||||
true
|
||||
}
|
||||
|
||||
fn dimension_acquired_points(&self) -> Vec<DVec3> {
|
||||
match self.step {
|
||||
Step::FirstPoint => vec![], Step::SecondPoint(p) => vec![p],
|
||||
Step::DimensionLine { first, second } => vec![first, second],
|
||||
}
|
||||
}
|
||||
|
||||
fn dimension_placement_pending(&self) -> bool {
|
||||
matches!(self.step, Step::DimensionLine { .. })
|
||||
}
|
||||
|
||||
fn on_escape(&mut self) -> CmdResult {
|
||||
CmdResult::Cancel
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user