From 7e4f77f704910e9ab3b72ba6820a22c374e127a2 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Fri, 1 May 2026 17:30:27 +0200 Subject: [PATCH] auto-git: [change] src/app/App.tsx --- src/app/App.tsx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/app/App.tsx b/src/app/App.tsx index f1d09968..b5077147 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -8684,6 +8684,28 @@ export function App({ store, initialStatusMessage }: AppProps) { ); }; + const handleTerrainLodGridVisibleChange = (visible: boolean) => { + if (selectedTerrain === null) { + return; + } + + const terrainId = selectedTerrain.id; + + setTerrainLodGridVisibleTerrainIds((currentIds) => { + const hasTerrainId = currentIds.includes(terrainId); + + if (visible && !hasTerrainId) { + return [...currentIds, terrainId]; + } + + if (!visible && hasTerrainId) { + return currentIds.filter((currentId) => currentId !== terrainId); + } + + return currentIds; + }); + }; + const handleTerrainBrushRadiusChange = (value: string) => { setTerrainBrushSettings((currentSettings) => ({ ...currentSettings,