From db1210831c9085e706540864a970e5f49452b69f Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sun, 5 Apr 2026 04:33:18 +0200 Subject: [PATCH] Enhance duplication logic with transformation check --- src/app/App.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index 48c3b7c3..9e4321cf 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -2810,7 +2810,18 @@ export function App({ store, initialStatusMessage }: AppProps) { try { store.executeCommand(createDuplicateSelectionCommand()); - setStatusMessage("Duplicated selection."); + + const duplicatedSelection = store.getState().selection; + const canGrabDuplicatedSelection = + (duplicatedSelection.kind === "brushes" || duplicatedSelection.kind === "entities" || duplicatedSelection.kind === "modelInstances") && + duplicatedSelection.ids.length === 1; + + if (canGrabDuplicatedSelection) { + beginTransformOperation("translate", "keyboard"); + } else { + setStatusMessage("Duplicated selection."); + } + return true; } catch (error) { setStatusMessage(getErrorMessage(error));