From 0389d6535cca70572ec809e8796b5db3ecfbf7ab Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 4 Apr 2026 20:14:35 +0200 Subject: [PATCH] Refactor App.tsx to conditionally render vector inputs based on selection mode --- src/app/App.tsx | 373 +++++++++++++++++++++++++----------------------- 1 file changed, 195 insertions(+), 178 deletions(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index 2c002aa8..962558bc 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -6758,188 +6758,205 @@ export function App({ store, initialStatusMessage }: AppProps) {
box
-
-
Center
-
- - - -
+
+
Selection Mode
+
{getWhiteboxSelectionModeLabel(whiteboxSelectionMode)}
-
-
Rotation
-
- - - + {whiteboxSelectionMode !== "object" ? ( +
+ {whiteboxSelectionMode === "face" + ? "Face mode keeps whole-solid transforms out of the way. Select a face to edit its material or UV transform." + : whiteboxSelectionMode === "edge" + ? "Edge mode is selection-only in this slice. Edge transforms land next." + : "Vertex mode is selection-only in this slice. Vertex transforms land next."}
-
+ ) : ( + <> +
+
Center
+
+ + + +
+
-
-
Size
-
- - - -
-
+
+
Rotation
+
+ + + +
+
+ +
+
Size
+
+ + + +
+
+ + )}
Faces