diff --git a/src/modules/annotate/aligned_dim.rs b/src/modules/annotate/aligned_dim.rs index 872a00232..a1b2f06cd 100644 --- a/src/modules/annotate/aligned_dim.rs +++ b/src/modules/annotate/aligned_dim.rs @@ -333,6 +333,18 @@ impl CadCommand for AlignedDimensionCommand { fill_tris_low: Vec::new(), }) } + + fn dyn_spec(&self) -> Option { + 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 { diff --git a/src/modules/annotate/linear_dim.rs b/src/modules/annotate/linear_dim.rs index 263fc8cac..b1014c505 100644 --- a/src/modules/annotate/linear_dim.rs +++ b/src/modules/annotate/linear_dim.rs @@ -368,6 +368,22 @@ impl CadCommand for LinearDimensionCommand { } } } + + fn dyn_spec(&self) -> Option { + 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 {