1
Some checks failed
CI / verify (push) Has been cancelled
CI / verify (pull_request) Has been cancelled

This commit is contained in:
2026-05-13 03:11:00 +08:00
parent e4a8bd42bb
commit b13870f71b
8 changed files with 273 additions and 55 deletions

View File

@@ -88,14 +88,17 @@ export function resolveMatch3DGeneratedImageViewSource(
export function getMatch3DGeneratedImageViewSources(
asset: Match3DGeneratedItemAsset,
) {
const sources =
const viewSources =
asset.imageViews
?.map(resolveMatch3DGeneratedImageViewSource)
.filter((source) => source.length > 0) ?? [];
if (viewSources.length > 0) {
return [...new Set(viewSources)];
}
const primarySource =
normalizeMatch3DModelSource(asset.imageObjectKey) ||
normalizeMatch3DModelSource(asset.imageSrc);
return [...new Set(primarySource ? [primarySource, ...sources] : sources)];
return primarySource ? [primarySource] : [];
}
export function resolveMatch3DGeneratedImageAssetSource(