refactor: simplify upload UI and enforce glb-only preview
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user