forked from 1b-agent/opencadstudio-upstream
Hide dynamic input during dimension line placement
This commit is contained in:
1 parent
1a7aad8e04
commit
c05d6ba44f
2 files changed
+28
No files matched your search
@@ -333,6 +333,18 @@ impl CadCommand for AlignedDimensionCommand {
|
||||
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 {
|
||||
|
||||
@@ -368,6 +368,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 {
|
||||
|
||||
Reference in new issue
Block a user