auto-git:

[change] src/app/App.tsx
This commit is contained in:
2026-05-01 17:42:40 +02:00
parent d105a970d6
commit 00ca856c52

View File

@@ -8784,14 +8784,18 @@ export function App({ store, initialStatusMessage }: AppProps) {
commit: TerrainBrushStrokeCommit commit: TerrainBrushStrokeCommit
): boolean => { ): boolean => {
try { try {
if (isTerrainBrushPatchEmpty(commit.patch)) {
return true;
}
store.executeCommand( store.executeCommand(
createUpsertTerrainCommand({ createApplyTerrainBrushPatchCommand({
terrain: commit.terrain, patch: commit.patch,
label: commit.commandLabel label: commit.commandLabel
}) })
); );
setStatusMessage( setStatusMessage(
`${commit.commandLabel} on ${getTerrainLabelById(commit.terrain.id, terrainList)}.` `${commit.commandLabel} on ${getTerrainLabelById(commit.terrainId, terrainList)}.`
); );
return true; return true;
} catch (error) { } catch (error) {