From 951c9e82b4adc8368d653eeed04ec53ead3c7374 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 31 Mar 2026 18:47:46 +0200 Subject: [PATCH] auto-git: [change] src/assets/gltf-model-import.ts --- src/assets/gltf-model-import.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/assets/gltf-model-import.ts b/src/assets/gltf-model-import.ts index fcbb2ba8..d526afa2 100644 --- a/src/assets/gltf-model-import.ts +++ b/src/assets/gltf-model-import.ts @@ -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"] {