fix: follow-ups to the merged PRs

- Selection filter: condition rows name INSERT as a block reference, as
  the object-type list does since #1726 (shared qselect_type_label).
- MCP: re-pin the tool schema digest for the view_background action
  added in #1722.
- -VIEW: fix an indentation slip and wrap two long lines from #1722.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Hakan SevenandClaude Opus 5.5 committed 2026-10-13 07:50:30 +03:00
1 parent 03445a540d
commit 74bffe77be
4 files changed
+21 -10

No files matched your search

+5 -2
View File
@@ -892,7 +892,10 @@ impl OpenCADStudio {
.push_error(crate::t!("Usage: VIEW DELETE <name>").as_ref());
} else {
if let Some(view) = self.tabs[i].scene.document.views.remove(&name) {
crate::scene::erase_background(&mut self.tabs[i].scene.document, view.background_handle);
crate::scene::erase_background(
&mut self.tabs[i].scene.document,
view.background_handle,
);
self.command_line
.push_output(crate::tf!("View '{}' deleted.", name).as_ref());
} else {
@@ -910,7 +913,7 @@ impl OpenCADStudio {
let found = self.tabs[i].scene.document.views.get(&name).cloned();
if let Some(v) = found {
self.tabs[i].scene.restore_named_view(&v);
self.apply_view_render_mode(i, &v);
self.apply_view_render_mode(i, &v);
self.command_line.push_output(
crate::tf!("View '{}' restored.", v.name).as_ref(),
);
+4 -1
View File
@@ -155,7 +155,10 @@ impl OpenCADStudio {
for name in &doomed {
let removed = self.tabs[i].scene.document.views.remove(name);
if let Some(view) = removed {
crate::scene::erase_background(&mut self.tabs[i].scene.document, view.background_handle);
crate::scene::erase_background(
&mut self.tabs[i].scene.document,
view.background_handle,
);
}
self.tabs[i].scene.document.delete_layer_state(&snapshot_name(name));
}