forked from 1b-agent/opencadstudio-upstream
Track mixed paper and viewport dimension references
This commit is contained in:
1 parent
bd00d679a9
commit
5424a19482
28 files changed
+823
-846
No files matched your search
@@ -217,7 +217,7 @@ impl CadCommand for LinearDimensionCommand {
|
||||
CmdResult::Cancel
|
||||
}
|
||||
|
||||
/// PR2: points and object picks may come through a paper-space viewport;
|
||||
/// Points and object picks may come through a paper-space viewport;
|
||||
/// the committed dimension then reports the model measurement.
|
||||
fn measures_through_viewports(&self) -> bool {
|
||||
true
|
||||
@@ -225,7 +225,8 @@ impl CadCommand for LinearDimensionCommand {
|
||||
|
||||
fn dimension_acquired_points(&self) -> Vec<DVec3> {
|
||||
match self.step {
|
||||
Step::FirstPoint => vec![], Step::SecondPoint(p) => vec![p],
|
||||
Step::FirstPoint => vec![],
|
||||
Step::SecondPoint(p) => vec![p],
|
||||
Step::DimensionLine { first, second } => vec![first, second],
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user