允许恢复流程识别已完成的素材回填
同一 Sprite 已绑定的节点直接跳过 仅对缺失 Image 或绑定其他素材报告错误
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user