From 983b15c3a72556d09b48210ef3be031224f3b0f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Sat, 12 Sep 2026 13:17:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=81=E8=AE=B8=E6=81=A2=E5=A4=8D=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E8=AF=86=E5=88=AB=E5=B7=B2=E5=AE=8C=E6=88=90=E7=9A=84?= =?UTF-8?q?=E7=B4=A0=E6=9D=90=E5=9B=9E=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 同一 Sprite 已绑定的节点直接跳过 仅对缺失 Image 或绑定其他素材报告错误 --- .../src/view/ui-editor/useUiEditorPage.ts | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts b/apps/ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts index 312a29aac..9e279db75 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts +++ b/apps/ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts @@ -1164,13 +1164,18 @@ export function useUiEditorSession( continue; } const imageComponent = location.node.component; - if ( - !imageComponent || - !('Image' in imageComponent) || - imageComponent.Image.target_graphic !== null - ) { + if (!imageComponent || !('Image' in imageComponent)) { backfillErrors.push( - `节点 ${bound.node_id} 没有可回填的未绑定 Image 组件,素材已保留`, + `节点 ${bound.node_id} 没有可回填的 Image 组件,素材已保留`, + ); + continue; + } + if (imageComponent.Image.target_graphic === sprite.asset_id) { + continue; + } + if (imageComponent.Image.target_graphic !== null) { + backfillErrors.push( + `节点 ${bound.node_id} 已绑定其他素材,自动切分素材已保留`, ); continue; }