Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/components/menu/MeshEditPopup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@
];

const GRANULARITIES = [
{
value: 'quad',
label: 'Quad',
title:
'Pick the quad under the cursor — the two triangles that form it (a 3-sided face picks alone)'
},
{ value: 'face', label: 'Face', title: 'Pick the whole coplanar face' },
{ value: 'triangle', label: 'Tri', title: 'Pick the single triangle under the cursor' },
{
Expand Down
12 changes: 11 additions & 1 deletion src/components/play/VREditMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@
// Control meshes stay named vredit-<full action> for the vrControls raycast;
// the 111 grab/persist applies (id editmenu).

// 15-G: one label map instead of a nested ternary — that ternary predated
// 'object' and would have shown BOTH 'quad' and 'object' as "Triangle"
const GRAN_LABELS: Record<string, string> = {
quad: 'Quad',
face: 'Face',
triangle: 'Triangle',
shell: 'Shell',
object: 'Object'
}

const { renderer } = useThrelte()

const WIDTH = 0.22
Expand Down Expand Up @@ -48,7 +58,7 @@
// 212: granularity + multi toggles above the ops
const nSel = $faceEditSelectedTris.length
list.push(
{ action: 'edit:granularity', label: `Select: ${$faceEditGranularity === 'shell' ? 'Shell' : $faceEditGranularity === 'face' ? 'Face' : 'Triangle'}`, active: $faceEditGranularity !== 'face' },
{ action: 'edit:granularity', label: `Select: ${GRAN_LABELS[$faceEditGranularity] ?? 'Quad'}`, active: $faceEditGranularity !== 'quad' },
{ action: 'edit:multi', label: `Multi: ${$faceEditMulti ? 'On' : 'Off'}${$faceEditMulti && nSel ? ` (${nSel})` : ''}`, active: $faceEditMulti },
{ action: 'face:extrude', label: 'Extrude', active: op === 'extrude' },
{ action: 'face:inset', label: 'Inset', active: op === 'inset' },
Expand Down
2 changes: 2 additions & 0 deletions src/components/ui/Icon.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Boxes,
Brush,
Camera,
Combine,
Copy,
Eye,
FileText,
Expand Down Expand Up @@ -51,6 +52,7 @@
boxes: Boxes,
brush: Brush,
camera: Camera,
combine: Combine,
copy: Copy,
eye: Eye,
'file-text': FileText,
Expand Down
Loading