Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-05-24 22:54:33 +00:00
parent bdd5a92c17
commit ac30db8241
+29
View File
@@ -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"