From 08c3b89b67b6805d18a84007fe8e50dbb6b40970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Fri, 18 Sep 2026 16:28:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B7=A8=E6=A0=91=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E9=80=89=E6=8B=A9=E5=90=8C=E6=AD=A5=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E5=9B=BE=20=E9=80=89=E6=8B=A9=E8=8A=82=E7=82=B9=E6=97=B6?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=BF=80=E6=B4=BB=E6=89=80=E5=B1=9E=E8=AE=BE?= =?UTF-8?q?=E8=AE=A1=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/view/ui-editor/components/InputSidebar.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/components/InputSidebar.tsx b/apps/ai-game-creator-shell/src/view/ui-editor/components/InputSidebar.tsx index 1734f1085..a6a28fafd 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/components/InputSidebar.tsx +++ b/apps/ai-game-creator-shell/src/view/ui-editor/components/InputSidebar.tsx @@ -91,7 +91,10 @@ export function InputSidebar({ input }: { input: UiEditorInputProjection }) { // the highlight before it can be painted. Only mutate selection // state when the target actually differs from the current one. const sameNode = input.selectedNodeId === nodeId; - if (!sameNode) input.selectNode(nodeId); + if (!sameNode) { + input.selectDesignImage(_treeId); + input.selectNode(nodeId); + } }} onToggleNodeVisibility={(nodeId) => input.toggleNodePreviewVisibility(nodeId)