forked from 1b-agent/opencadstudio-upstream
Correct pyramid rotation and property sections
This commit is contained in:
1 parent
0bfa48909f
commit
f9641bd9d5
2 files changed
+44
-4
No files matched your search
@@ -2074,6 +2074,9 @@ impl OpenCADStudio {
|
||||
});
|
||||
}
|
||||
}
|
||||
if specialized_primitive {
|
||||
retain_specialized_primitive_sections(&mut sections);
|
||||
}
|
||||
let title = match entity {
|
||||
acadrust::EntityType::Insert(ins) => {
|
||||
let is_xref = self.tabs[i]
|
||||
@@ -3047,6 +3050,30 @@ fn aggregate_solid_history_sections(
|
||||
merged
|
||||
}
|
||||
|
||||
fn retain_specialized_primitive_sections(
|
||||
sections: &mut Vec<crate::scene::model::object::PropSection>,
|
||||
) {
|
||||
sections.iter_mut().for_each(|section| {
|
||||
section.props.retain(|property| {
|
||||
matches!(
|
||||
property.field,
|
||||
"color"
|
||||
| "layer"
|
||||
| "linetype"
|
||||
| "linetype_scale"
|
||||
| "plot_style"
|
||||
| "lineweight"
|
||||
| "transparency"
|
||||
| "hyperlink"
|
||||
| "material"
|
||||
| "solid_history_type"
|
||||
) || crate::scene::model::solid_history::is_primitive_property(property.field)
|
||||
|| crate::scene::model::solid_history::is_history_choice(property.field)
|
||||
});
|
||||
});
|
||||
sections.retain(|section| !section.props.is_empty());
|
||||
}
|
||||
|
||||
fn merge_sections(
|
||||
left: &[crate::scene::model::object::PropSection],
|
||||
right: &[crate::scene::model::object::PropSection],
|
||||
|
||||
Reference in new issue
Block a user