forked from 1b-agent/opencadstudio-upstream
Merge pull request #1316 from ghost/hide-dynamic-dimension-placement
This commit is contained in:
commit
0c9cb72069
6 files changed
+28
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 126 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 130 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 130 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 133 KiB |
@@ -351,6 +351,18 @@ impl CadCommand for AlignedDimensionCommand {
|
|||||||
fill_tris_low: Vec::new(),
|
fill_tris_low: Vec::new(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn dyn_spec(&self) -> Option<crate::command::DynSpec> {
|
||||||
|
if !matches!(self.step, Step::DimLine { .. }) || self.awaiting_text || self.awaiting_angle {
|
||||||
|
return None;
|
||||||
|
}
|
||||||
|
Some(crate::command::DynSpec {
|
||||||
|
anchor: crate::command::DynAnchor::LastPoint,
|
||||||
|
fields: Vec::new(),
|
||||||
|
guide: crate::command::DynGuide::None,
|
||||||
|
ref_point: None,
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn v3(p: DVec3) -> Vector3 {
|
fn v3(p: DVec3) -> Vector3 {
|
||||||
|
|||||||
@@ -386,6 +386,22 @@ impl CadCommand for LinearDimensionCommand {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn dyn_spec(&self) -> Option<crate::command::DynSpec> {
|
||||||
|
if !matches!(self.step, Step::DimensionLine { .. })
|
||||||
|
|| self.awaiting_text
|
||||||
|
|| self.awaiting_angle
|
||||||
|
|| self.awaiting_rotation
|
||||||
|
{
|
||||||
|
return None;
|
||||||
|
}
|
||||||
|
Some(crate::command::DynSpec {
|
||||||
|
anchor: crate::command::DynAnchor::LastPoint,
|
||||||
|
fields: Vec::new(),
|
||||||
|
guide: crate::command::DynGuide::None,
|
||||||
|
ref_point: None,
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn v3(pt: DVec3) -> Vector3 {
|
fn v3(pt: DVec3) -> Vector3 {
|
||||||
|
|||||||
Reference in new issue
Block a user