frameCount fix

This commit is contained in:
Dennis Postma 2025-01-10 19:29:28 +01:00
parent a4437fadce
commit 3869eefaaf
2 changed files with 5 additions and 4 deletions

6
package-lock.json generated
View File

@ -5188,9 +5188,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/long": { "node_modules/long": {
"version": "5.2.3", "version": "5.2.4",
"resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", "resolved": "https://registry.npmjs.org/long/-/long-5.2.4.tgz",
"integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==", "integrity": "sha512-qtzLbJE8hq7VabR3mISmVGtoXP8KGc2Z/AT8OuqlYD7JTR3oqrgwdjnk07wpj1twXxYmgDXgoKVWUG/fReSzHg==",
"license": "Apache-2.0" "license": "Apache-2.0"
}, },
"node_modules/lru-cache": { "node_modules/lru-cache": {

View File

@ -22,7 +22,8 @@ export class Sprite extends BaseSprite {
isLooping: spriteAction.getIsLooping(), isLooping: spriteAction.getIsLooping(),
frameWidth: spriteAction.getFrameWidth(), frameWidth: spriteAction.getFrameWidth(),
frameHeight: spriteAction.getFrameHeight(), frameHeight: spriteAction.getFrameHeight(),
frameRate: spriteAction.getFrameRate() frameRate: spriteAction.getFrameRate(),
frameCount: spriteAction.getSprites()?.length
})) }))
} }
} catch (error) { } catch (error) {