From 1181a0ad596cead9a8f8bb0ae69604d01f1e9257 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 18 Apr 2026 19:49:25 +0200 Subject: [PATCH] Add terrain deletion functionality --- src/app/App.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/App.tsx b/src/app/App.tsx index 383f04ec..745cccc3 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -8615,6 +8615,12 @@ export function App({ store, initialStatusMessage }: AppProps) { return handleDeletePath(selectedPathId); } + const selectedTerrainId = getSingleSelectedTerrainId(editorState.selection); + + if (selectedTerrainId !== null) { + return handleDeleteTerrain(selectedTerrainId); + } + if (editorState.selection.kind === "entities") { try { store.executeCommand(