Merge pull request #1316 from ghost/hide-dynamic-dimension-placement

This commit is contained in:
Hakan Seven committed 2026-09-17 07:09:06 +03:00
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

+12
View File
@@ -351,6 +351,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
@@ -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 {