From e85e953fb9f08eb98eb5bd105bd19f4411932769 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sun, 5 Apr 2026 04:22:04 +0200 Subject: [PATCH] Update duplicate selection command to use SceneDocument type --- src/commands/duplicate-selection-command.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/duplicate-selection-command.ts b/src/commands/duplicate-selection-command.ts index 7c3084db..60a0a90d 100644 --- a/src/commands/duplicate-selection-command.ts +++ b/src/commands/duplicate-selection-command.ts @@ -4,6 +4,7 @@ import { cloneEditorSelection, type EditorSelection } from "../core/selection"; import type { ToolMode } from "../core/tool-mode"; import type { Vec3 } from "../core/vector"; import { cloneBoxBrush, type BoxBrush } from "../document/brushes"; +import type { SceneDocument } from "../document/scene-document"; import { cloneEntityInstance, type EntityInstance } from "../entities/entity-instances"; import type { EditorCommand } from "./command"; @@ -63,7 +64,7 @@ function resolveDuplicatableBrushIds(selection: EditorSelection): string[] | nul } } -function createDuplicateSelectionResult(currentDocument: ReturnType[0]["getDocument"]>, selection: EditorSelection): DuplicateSelectionResult { +function createDuplicateSelectionResult(currentDocument: SceneDocument, selection: EditorSelection): DuplicateSelectionResult { const duplicatableBrushIds = resolveDuplicatableBrushIds(selection); if (duplicatableBrushIds !== null) {