forked from 1b-agent/opencadstudio-upstream
Fix XLine and wipeout properties
This commit is contained in:
1 parent
21e085db7e
commit
21a232ef8d
6 files changed
+104
-36
No files matched your search
Vendored
+1
@@ -120,6 +120,7 @@ pub fn visualization_section(entity: &EntityType) -> Option<PropSection> {
|
||||
| EntityType::BlockEnd(_)
|
||||
| EntityType::Seqend(_)
|
||||
| EntityType::Leader(_)
|
||||
| EntityType::Wipeout(_)
|
||||
| EntityType::Unknown(_)
|
||||
// Non-plotting drawing-view border: never rendered, no properties.
|
||||
| EntityType::ViewBorder(_)
|
||||
|
||||
@@ -1282,6 +1282,7 @@ fn tessellate_entity_inner(
|
||||
}
|
||||
if matches!(e, EntityType::Wipeout(_)) {
|
||||
b.depth_override = Some(0.5);
|
||||
b.line_weight_px = b.line_weight_px.max(1.5);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1609,6 +1609,12 @@ pub fn primitive_properties(
|
||||
document: &acadrust::CadDocument,
|
||||
handle: acadrust::Handle,
|
||||
) -> Vec<PropSection> {
|
||||
if !matches!(
|
||||
document.get_entity(handle),
|
||||
Some(acadrust::EntityType::Solid3D(_) | acadrust::EntityType::Surface(_))
|
||||
) {
|
||||
return Vec::new();
|
||||
}
|
||||
let Some(operation) = primitive_property_operation(document, handle) else {
|
||||
return brep_properties(document, handle);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user