forked from 1b-agent/opencadstudio-upstream
Align generic solid properties palette
This commit is contained in:
1 parent
56e09cd3f5
commit
b9b9566120
2 files changed
+5
-42
No files matched your search
@@ -3140,8 +3140,7 @@ fn retain_compact_solid_sections(
|
|||||||
| "transparency"
|
| "transparency"
|
||||||
| "hyperlink"
|
| "hyperlink"
|
||||||
| "material"
|
| "material"
|
||||||
) || property.field.starts_with("mesh_")
|
) || crate::scene::model::solid_history::is_specialized_property(property.field)
|
||||||
|| crate::scene::model::solid_history::is_specialized_property(property.field)
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
sections.retain(|section| !section.props.is_empty());
|
sections.retain(|section| !section.props.is_empty());
|
||||||
|
|||||||
@@ -1013,44 +1013,9 @@ fn brep_properties(
|
|||||||
history_flags(document, handle).unwrap_or((false, false, 1));
|
history_flags(document, handle).unwrap_or((false, false, 1));
|
||||||
let (show_history, show_history_editable) =
|
let (show_history, show_history_editable) =
|
||||||
displayed_history_state(object_show_history, show_history_mode);
|
displayed_history_state(object_show_history, show_history_mode);
|
||||||
let mut geometry = vec![Property {
|
vec![PropSection {
|
||||||
label: t!("Solid type").into_owned(),
|
title: t!("Solid History").into_owned(),
|
||||||
field: "solid_history_type",
|
props: vec![
|
||||||
value: PropValue::ReadOnly(t!("3D Solid").into_owned()),
|
|
||||||
}];
|
|
||||||
if let Some(position) = document
|
|
||||||
.solid_history_operation(handle)
|
|
||||||
.and_then(|operation| match operation {
|
|
||||||
SolidHistoryOperation::Brep(value) => world_point(value.base.transform, [0.0; 3]),
|
|
||||||
_ => None,
|
|
||||||
})
|
|
||||||
{
|
|
||||||
geometry.extend([
|
|
||||||
crate::entities::common::edit_prop(
|
|
||||||
t!("Position X").as_ref(),
|
|
||||||
PROP_POSITION_X,
|
|
||||||
position.x,
|
|
||||||
),
|
|
||||||
crate::entities::common::edit_prop(
|
|
||||||
t!("Position Y").as_ref(),
|
|
||||||
PROP_POSITION_Y,
|
|
||||||
position.y,
|
|
||||||
),
|
|
||||||
crate::entities::common::edit_prop(
|
|
||||||
t!("Position Z").as_ref(),
|
|
||||||
PROP_POSITION_Z,
|
|
||||||
position.z,
|
|
||||||
),
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
vec![
|
|
||||||
PropSection {
|
|
||||||
title: t!("Geometry").into_owned(),
|
|
||||||
props: geometry,
|
|
||||||
},
|
|
||||||
PropSection {
|
|
||||||
title: t!("Solid History").into_owned(),
|
|
||||||
props: vec![
|
|
||||||
Property {
|
Property {
|
||||||
label: t!("History").into_owned(),
|
label: t!("History").into_owned(),
|
||||||
field: PROP_HISTORY,
|
field: PROP_HISTORY,
|
||||||
@@ -1072,8 +1037,7 @@ fn brep_properties(
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
}]
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn cylinder_properties(
|
fn cylinder_properties(
|
||||||
|
|||||||
Reference in new issue
Block a user