From 44f267b514d371f9a07d0d19346118085d1e2198 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 18 Apr 2026 20:29:58 +0200 Subject: [PATCH] Add Terrain Tools section with brush controls in App.tsx --- src/app/App.tsx | 95 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 94 insertions(+), 1 deletion(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index 7433b91a..7a926658 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -15165,10 +15165,103 @@ export function App({ store, initialStatusMessage }: AppProps) { "Visible and enabled"}
- Terrain editing tools land in a later inspector slice. This foundation keeps the authored grid and derived mesh selectable and inspectable. + Terrain editing stays inspector-driven. Arm a brush here, + then drag on the selected terrain in the viewport.
+
+
Terrain Tools
+
+ {( + [ + "raise", + "lower", + "smooth", + "flatten" + ] as const satisfies readonly TerrainBrushTool[] + ).map((tool) => ( + + ))} +
+
+ {armedTerrainBrushTool === null + ? "No terrain brush is armed. Existing selection and transforms stay unchanged." + : `${getTerrainBrushToolLabel(armedTerrainBrushTool)} is armed for ${getTerrainLabelById(selectedTerrain.id, terrainList)}. Click the active tool again to disarm it.`} +
+
+ +
+
Brush
+ + + +
+
Grid