forked from 1b-agent/opencadstudio-upstream
Restore a view's visual style; no background in 2D wireframe
Restoring a named view gives the model viewport the view's visual style (the closest render mode), and a 2D wireframe viewport shows no background, as in the reference. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
c8167c54ee
commit
8055fa710d
5 files changed
+63
-8
No files matched your search
@@ -909,6 +909,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.command_line.push_output(
|
||||
crate::tf!("View '{}' restored.", v.name).as_ref(),
|
||||
);
|
||||
@@ -932,6 +933,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.command_line
|
||||
.push_output(crate::tf!("View '{}' restored.", v.name).as_ref());
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user