Merge pull request #1642 from ramox81/codex/sweep-corner-followups

This commit is contained in:
Hakan Seven committed 2026-10-07 12:55:08 +03:00
commit 737981791b
29 files changed
+482 -108

No files matched your search

+13
View File
@@ -1454,6 +1454,19 @@ impl Scene {
self.rebuild_solid_history(handle, operation)
}
/// The modeler error code the reference reports when it refuses a sweep
/// property edit (twist or scale along a path with a corner).
pub fn solid_history_property_refusal(&self, handle: Handle, field: &str, value: &str) -> Option<u32> {
let mut operation = crate::scene::model::solid_history::primitive_property_operation(&self.document, handle)?;
if !crate::scene::model::solid_history::apply_primitive_property(&mut operation, field, value) {
return None;
}
let codec::objects::SolidHistoryOperation::Sweep(record) = &operation else {
return None;
};
kernel::acis::sweep_history_refusal(record).map(crate::scene::model::sweep_model::sweep_refusal_code)
}
pub fn apply_solid_position_property(
&mut self,
handle: Handle,