Skip to content

Commit

Permalink
Merge 97c67c3 into ad7e4c9
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo committed Sep 8, 2022
2 parents ad7e4c9 + 97c67c3 commit d020933
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/Item/hashes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ import { buildTPItemURN, isTPItem } from './utils'

const THUMBNAIL_PATH = 'thumbnail.png'
const IMAGE_PATH = 'image.png'
const ANIMATION_EMPTY_METRICS = {
triangles: 0,
materials: 0,
textures: 0,
meshes: 0,
bodies: 0,
entities: 1,
}

function buildStandardWearableEntityMetadata(
item: ItemAttributes,
Expand Down Expand Up @@ -74,7 +82,7 @@ function buildEmoteEntityMetadata(
},
image: IMAGE_PATH,
thumbnail: THUMBNAIL_PATH,
metrics: item.metrics,
metrics: ANIMATION_EMPTY_METRICS,
}

return entity
Expand Down Expand Up @@ -122,14 +130,7 @@ function buildLegacyEmoteEntityMetadata(
},
image: IMAGE_PATH,
thumbnail: THUMBNAIL_PATH,
metrics: {
triangles: 0,
materials: 0,
textures: 0,
meshes: 0,
bodies: 0,
entities: 1,
},
metrics: ANIMATION_EMPTY_METRICS,
emoteDataV0: {
loop: false,
},
Expand Down

0 comments on commit d020933

Please sign in to comment.