forked from 1b-agent/opencadstudio-upstream
Apply and persist hatch origin command choices
This commit is contained in:
1 parent
a44a13a5ad
commit
67f374c853
5 files changed
+81
-7
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user