diff --git a/src/app/App.tsx b/src/app/App.tsx index 2626365f..911564c2 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -10298,12 +10298,18 @@ export function App({ }); const terrainLabel = getTerrainLabelById(selectedTerrain.id, terrainList); - commitTerrainChange( + const committed = commitTerrainChange( selectedTerrain, nextTerrain, "Resize terrain grid", - `Resampled ${terrainLabel} to ${nextTerrain.sampleCountX} x ${nextTerrain.sampleCountZ} samples with ${nextTerrain.cellSize}m square cells.` + `Updated ${terrainLabel} to ${nextTerrain.sampleCountX} x ${nextTerrain.sampleCountZ} samples with ${nextTerrain.cellSize}m square cells.` ); + + if (committed) { + setTerrainSampleCountXDraft(String(nextTerrain.sampleCountX)); + setTerrainSampleCountZDraft(String(nextTerrain.sampleCountZ)); + setTerrainCellSizeDraft(String(nextTerrain.cellSize)); + } } catch (error) { setStatusMessage(getErrorMessage(error)); } @@ -21242,8 +21248,8 @@ export function App({