fix: NAVVCUBE and UCSICON commands now properly toggle visibility
NAVVCUBE: propagate show_viewcube flag through ViewportPane and the wgpu Primitive so the ViewCube pipeline skips upload/render when hidden. UCSICON: bare command (no subcommand) now toggles current state instead of printing usage info. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1ec53a4730
commit
5f3182fa9a
4 changed files with 41 additions and 16 deletions
|
|
@ -108,7 +108,7 @@ impl H7CAD {
|
|||
let viewport_3d: Element<'_, Message> = if is_paper {
|
||||
paper_canvas_view(tab)
|
||||
} else {
|
||||
shader(ViewportPane::model(&tab.scene))
|
||||
shader(ViewportPane::model(&tab.scene, self.show_viewcube))
|
||||
.width(Fill)
|
||||
.height(Fill)
|
||||
.into()
|
||||
|
|
|
|||
Loading…
Reference in a new issue