refactor: simplify upload UI and enforce glb-only preview

This commit is contained in:
Tom Boullay
2026-04-24 16:40:55 +02:00
parent 944959fc22
commit fe8a6f0f54
4 changed files with 39 additions and 21 deletions
+3 -1
View File
@@ -67,7 +67,9 @@ export default function FolderDropzone({
status: 'pending',
progress: 0,
warnings: validation.warnings,
modelUrl: URL.createObjectURL(validation.model),
modelUrl: validation.model.name.toLowerCase() === 'model.glb'
? URL.createObjectURL(validation.model)
: undefined,
viewerOpen: true,
}