auto-git:
[change] src/commands/apply-terrain-brush-patch-command.ts
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user