From 12d2b6b699bc8fc203882f3bc0950a47c07a68a4 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 18 Apr 2026 19:48:45 +0200 Subject: [PATCH] Add terrain selection description in describeSelection function --- src/app/App.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/App.tsx b/src/app/App.tsx index f4a39d24..8f9d9879 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -1297,6 +1297,7 @@ function getSelectedBrushLabel( function describeSelection( selection: EditorSelection, brushes: Brush[], + terrains: Terrain[], paths: ScenePath[], modelInstances: Record, assets: Record, @@ -1332,6 +1333,8 @@ function describeSelection( : getBrushVertexLabel(brush, selection.vertexId); return `1 vertex selected (${vertexLabel} on ${getBrushLabelById(selection.brushId, brushes)})`; } + case "terrains": + return `${selection.ids.length} terrain${selection.ids.length === 1 ? "" : "s"} selected (${getTerrainLabelById(resolveSelectionActiveId(selection, activeSelectionId) ?? selection.ids[0], terrains)})`; case "paths": return `${selection.ids.length} path${selection.ids.length === 1 ? "" : "s"} selected (${getPathLabelById(selection.ids[0], paths)})`; case "pathPoint": {