Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Fix scenes type (#10783)
Browse files Browse the repository at this point in the history
  • Loading branch information
CITIZENDOT authored Jul 31, 2024
1 parent 539ab6e commit e3869fc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1658,6 +1658,7 @@ const migrateResourcesJson = (projectName: string, resourceJsonPath: string) =>
const getResourceType = (key: string, resource?: ResourceType) => {
// TODO: figure out a better way of handling thumbnails rather than by convention
if (key.startsWith('public/thumbnails') || key.endsWith('.thumbnail.jpg')) return 'thumbnail'
if (key.startsWith('public/scenes') && key.endsWith('.gltf')) return 'scene'
if (!resource) return 'file'
if (staticResourceClasses.includes(FileToAssetType(key))) return 'asset'
if (resource.type) return resource.type
Expand Down

0 comments on commit e3869fc

Please sign in to comment.