1
0
forked from noxious/client

Use originX and Y for hair

This commit is contained in:
2024-12-21 03:00:09 +01:00
parent 8005bc1318
commit 0e455f8ffc
5 changed files with 36 additions and 11 deletions

View File

@ -25,7 +25,19 @@ export class AssetStorage {
const blob = await response.blob()
// Store the asset in the database
await this.db.table('assets').put({ key: asset.key, data: blob, group: asset.group, updatedAt: asset.updatedAt, frameCount: asset.frameCount, frameWidth: asset.frameWidth, frameHeight: asset.frameHeight })
await this.db.table('assets').put({
key: asset.key,
data: blob,
group: asset.group,
updatedAt: asset.updatedAt,
originX: asset.originX,
originY: asset.originY,
isAnimated: asset.isAnimated,
frameWidth: asset.frameWidth,
frameHeight: asset.frameHeight,
frameRate: asset.frameRate,
frameCount: asset.frameCount
})
} catch (error) {
console.error(`Failed to add asset ${asset.key}:`, error)
}