feat(hatch): add multi-region selection

Refs #532
This commit is contained in:
Hakan Seven 2026-08-13 17:16:29 +03:00
commit 7a8da58d55
12 changed files with 350 additions and 118 deletions

View file

@ -14,7 +14,15 @@ impl OpenCADStudio {
true
}
fn refresh_area_preview(&mut self, i: usize) {
pub(super) fn refresh_area_preview(&mut self, i: usize) {
let hatches = self.tabs[i]
.active_cmd
.as_ref()
.and_then(|command| command.hatch_preview_models());
if let Some(hatches) = hatches {
self.tabs[i].scene.set_command_preview_hatches(hatches);
return;
}
let regions = self.tabs[i]
.active_cmd
.as_ref()