auto-git:
[change] src/app/App.tsx
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user