auto-git:

[change] src/commands/apply-terrain-brush-patch-command.ts
This commit is contained in:
2026-05-01 17:43:53 +02:00
parent e36c124f19
commit 225f0e96a3

View File

@@ -6,7 +6,7 @@ import type {
} from "../core/terrain-brush"; } from "../core/terrain-brush";
import type { ToolMode } from "../core/tool-mode"; import type { ToolMode } from "../core/tool-mode";
import type { EditorCommand } from "./command"; import type { CommandContext, EditorCommand } from "./command";
interface ApplyTerrainBrushPatchCommandOptions { interface ApplyTerrainBrushPatchCommandOptions {
patch: TerrainBrushPatch; patch: TerrainBrushPatch;
@@ -54,7 +54,7 @@ export function createApplyTerrainBrushPatchCommand(
let previousToolMode: ToolMode | null = null; let previousToolMode: ToolMode | null = null;
const applyPatch = ( const applyPatch = (
context: Parameters<EditorCommand["execute"]>[0], context: CommandContext,
direction: "forward" | "backward" direction: "forward" | "backward"
) => { ) => {
const currentDocument = context.getDocument(); const currentDocument = context.getDocument();