auto-git:

[change] src/assets/gltf-model-import.ts
This commit is contained in:
2026-03-31 18:47:46 +02:00
parent cdc4999ab1
commit 951c9e82b4

View File

@@ -165,7 +165,8 @@ function getRelativePath(fromDirectory: string, targetPath: string): string {
}
function getImportedFilePath(file: File): string {
return normalizeRelativePath(file.webkitRelativePath.trim() || file.name.trim());
const relativePath = typeof file.webkitRelativePath === "string" ? file.webkitRelativePath.trim() : "";
return normalizeRelativePath(relativePath.length > 0 ? relativePath : file.name.trim());
}
function createBoundingBoxFromObject(object: Object3D): ModelAssetMetadata["boundingBox"] {