Hide dynamic input during dimension line placement

This commit is contained in:
Christopher Overbeck committed 2026-09-16 10:36:32 -05:00
1 parent 1a7aad8e04
commit c05d6ba44f
2 files changed
+28

No files matched your search

+12
View File
@@ -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 {
+16
View File
@@ -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 {