Changes
Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
@@ -133,9 +133,38 @@ export function ViewerControls() {
|
||||
</span>
|
||||
</Button>
|
||||
|
||||
{/* Section cuts (X/Y/Z clipping planes) */}
|
||||
<div className="flex items-end gap-1.5">
|
||||
<Button
|
||||
variant={sectionPanelOpen || sectionActive ? 'default' : 'outline'}
|
||||
size="sm"
|
||||
className="gap-2 h-9"
|
||||
onClick={() => setSectionPanelOpen(!sectionPanelOpen)}
|
||||
disabled={!activeModelId}
|
||||
title="Cortes de seção em X / Y / Z"
|
||||
>
|
||||
<Scissors className="h-3.5 w-3.5" />
|
||||
<span className="font-mono text-xs">
|
||||
Cortes{sectionActive ? ' •' : ''}
|
||||
</span>
|
||||
</Button>
|
||||
{sectionActive && (
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
className="h-9 w-9"
|
||||
onClick={() => { resetSection(); toast.success('Cortes resetados'); }}
|
||||
title="Resetar todos os cortes"
|
||||
>
|
||||
<Trash2 className="h-3.5 w-3.5 text-destructive" />
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Scale presets */}
|
||||
<ScaleSelector />
|
||||
|
||||
|
||||
<Button
|
||||
variant={renderMode === 'edges' ? 'default' : 'outline'}
|
||||
size="sm"
|
||||
|
||||
Reference in New Issue
Block a user