Restore editable extrusion surface grips

This commit is contained in:
ramox81 committed 2026-09-10 13:44:10 +03:00
1 parent b19992cbcb
commit c0b254950f
3 files changed
+52 -5

No files matched your search

+18
View File
@@ -402,6 +402,24 @@ impl super::OpenCADStudio {
self.add_surface_model_inner(entity, surface, true)
}
pub(super) fn add_surface_model_with_history(
&mut self,
entity: EntityType,
surface: Body,
history: SolidHistoryOperation,
) -> Handle {
let i = self.active_tab;
let handle = self.add_surface_model_inner(entity, surface, true);
if handle.is_null() {
return handle;
}
if !self.tabs[i].scene.create_solid_history(handle, history) {
self.tabs[i].scene.rollback_new_entities(&[handle]);
return Handle::NULL;
}
handle
}
fn add_surface_model_preserving_style(
&mut self,
entity: EntityType,