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; }