From c0929b4774ad4d0799bdcc7420da94f6b0087fdf Mon Sep 17 00:00:00 2001 From: ramox81 <184937705+ramox81@users.noreply.github.com> Date: Mon, 12 Oct 2026 09:27:16 +0300 Subject: [PATCH] Clear the selection after REGION The command left its sources selected when DELOBJ keeps them, so the next command took them as its preselection; the reference clears the selection after REGION. Co-Authored-By: Claude Opus 5.5 --- src/app/commands/draw.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/commands/draw.rs b/src/app/commands/draw.rs index 0dc6605db..004ccf0ff 100644 --- a/src/app/commands/draw.rs +++ b/src/app/commands/draw.rs @@ -2307,6 +2307,9 @@ impl OpenCADStudio { self.tabs[i].scene.erase_entities(&sources); self.refresh_properties(); } + // The command consumes the selection, kept sources included. + self.tabs[i].scene.deselect_all(); + self.refresh_properties(); self.tabs[i].dirty = true; self.command_line .push_output(crate::tf!("REGION: created {count} region(s).").as_ref());