forked from 1b-agent/opencadstudio-upstream
Simplify jogged radius misc properties
This commit is contained in:
1 parent
706645b6d8
commit
ac81f3b045
2 files changed
+5
-33
No files matched your search
@@ -1063,16 +1063,6 @@ impl OpenCADStudio {
|
||||
&self.tabs[i].scene.document,
|
||||
));
|
||||
|
||||
if matches!(d, acadrust::entities::Dimension::LargeRadial(_)) {
|
||||
if let Some(index) = sections
|
||||
.iter()
|
||||
.position(|section| section.title == t!("Misc").as_ref())
|
||||
{
|
||||
let misc = sections.remove(index);
|
||||
sections.push(misc);
|
||||
}
|
||||
}
|
||||
|
||||
// Prefer entity-level dimension-variable overrides;
|
||||
// fall back to the assigned style values.
|
||||
use crate::entities::dim_override as dov;
|
||||
|
||||
@@ -111,29 +111,11 @@ fn properties(dim: &Dimension) -> Vec<PropSection> {
|
||||
if let Dimension::LargeRadial(d) = dim {
|
||||
return vec![PropSection {
|
||||
title: t!("Misc").into_owned(),
|
||||
props: vec![
|
||||
Property {
|
||||
label: t!("Dimension style").into_owned(),
|
||||
field: "style_name",
|
||||
value: PropValue::PlainText(d.base.style_name.clone()),
|
||||
},
|
||||
edit_angle(
|
||||
t!("Rotation").as_ref(),
|
||||
"large_radial_rotation",
|
||||
large_radial_rotation(d).to_degrees(),
|
||||
),
|
||||
edit(t!("Center X").as_ref(), "definition_x", d.definition_point.x),
|
||||
edit(t!("Center Y").as_ref(), "definition_y", d.definition_point.y),
|
||||
edit(t!("Center Z").as_ref(), "definition_z", d.definition_point.z),
|
||||
edit(t!("Chord X").as_ref(), "chord_x", d.chord_point.x),
|
||||
edit(t!("Chord Y").as_ref(), "chord_y", d.chord_point.y),
|
||||
edit(t!("Chord Z").as_ref(), "chord_z", d.chord_point.z),
|
||||
ro(
|
||||
t!("Measurement").as_ref(),
|
||||
"measurement",
|
||||
format!("{:.4}", d.measurement()),
|
||||
),
|
||||
],
|
||||
props: vec![Property {
|
||||
label: t!("Dim style").into_owned(),
|
||||
field: "style_name",
|
||||
value: PropValue::PlainText(d.base.style_name.clone()),
|
||||
}],
|
||||
}];
|
||||
}
|
||||
let compact_linear = match dim {
|
||||
|
||||
Reference in new issue
Block a user