Add support for 3d models in assets and attachments

This commit is contained in:
2026-01-13 13:46:28 +01:00
parent e3d3a62f84
commit f215ef9aba
20 changed files with 15057 additions and 24 deletions

View File

@@ -16,6 +16,13 @@ export function isVideoAsset(asset) {
return asset?.mediaType?.startsWith("video/");
}
export function isModelAsset(asset) {
if (asset?.assetType) {
return asset.assetType === "MODEL";
}
return asset?.mediaType?.startsWith("model/");
}
export function isVideoElement(element) {
return element?.tagName === "VIDEO";
}