forked from 1b-agent/opencadstudio-upstream
selection: start the found count afresh for every command
The count was keyed on the gathering command's address, so a command boxed where the previous one was (MOVE right after MOVE) inherited its selection and reported its first pick as a duplicate. Drop the report whenever no command is running. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
b5fb42e9f8
commit
06d0ddc393
2 files changed
+7
-1
No files matched your search
@@ -574,7 +574,7 @@ impl OpenCADStudio {
|
||||
StepInput::SelectionComplete(kept)
|
||||
}
|
||||
|
||||
/// What one selection step picked, as the reference words it: `N found`
|
||||
/// What one selection step picked, as the reference words it: `N found`
|
||||
/// for the first step, `N found, M total`, `N found (D duplicate), M
|
||||
/// total` when some were chosen already, `N found, R removed, M total` in
|
||||
/// remove mode. Returns the command's key while it gathers.
|
||||
|
||||
@@ -613,6 +613,12 @@ impl OpenCADStudio {
|
||||
// open, template new); announce it on the same boundary (API v9).
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
self.notify_plugins_document_opened();
|
||||
// The `N found, M total` count belongs to the command that gathered
|
||||
// it; the next command, even one boxed at the same address, starts
|
||||
// from nothing.
|
||||
if self.tabs[self.active_tab].active_cmd.is_none() {
|
||||
self.selection_report = None;
|
||||
}
|
||||
// OTRACK acquires tracking points only while a command or grip drag is
|
||||
// running; drop them once neither is active so the temporary tracking
|
||||
// points / vectors disappear when the command ends (issue #64). A grip
|
||||
|
||||
Reference in new issue
Block a user