Apply and persist hatch origin command choices

This commit is contained in:
ramox81 committed 2026-09-11 12:52:30 +03:00
1 parent a44a13a5ad
commit 67f374c853
5 files changed
+81 -7

No files matched your search

+10
View File
@@ -4524,10 +4524,20 @@ impl OpenCADStudio {
}
HatchEditOperation::Update {
origin,
store_origin,
disassociate,
style,
annotative,
} => {
if store_origin {
if let Some((x, y)) = origin {
if !self.tabs[i].scene.document.set_hatch_origin([x, y]) {
self.discard_last_undo_entry(i);
self.command_line.push_error("HATCHEDIT: cannot store default origin.");
return Task::none();
}
}
}
if let Some(acadrust::EntityType::Hatch(hatch)) =
self.tabs[i].scene.document.get_entity_mut(handle)
{