Add terrain deletion functionality
This commit is contained in:
@@ -8615,6 +8615,12 @@ export function App({ store, initialStatusMessage }: AppProps) {
|
|||||||
return handleDeletePath(selectedPathId);
|
return handleDeletePath(selectedPathId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const selectedTerrainId = getSingleSelectedTerrainId(editorState.selection);
|
||||||
|
|
||||||
|
if (selectedTerrainId !== null) {
|
||||||
|
return handleDeleteTerrain(selectedTerrainId);
|
||||||
|
}
|
||||||
|
|
||||||
if (editorState.selection.kind === "entities") {
|
if (editorState.selection.kind === "entities") {
|
||||||
try {
|
try {
|
||||||
store.executeCommand(
|
store.executeCommand(
|
||||||
|
|||||||
Reference in New Issue
Block a user