EsotericSoftware / spine-runtimes

2D skeletal animation runtimes for Spine.
http://esotericsoftware.com/
Other
4.43k stars 2.92k forks source link

Fix `SpinePlayerConfig` typing and `dispose()` error before init #2626

Closed RaenonX closed 2 months ago

RaenonX commented 2 months ago

Basically copy pasted what 4.2 has with small modification for SpinePlayerConfig.

Side note though, I think the typing for 4.2 on preserveDrawingBuffer for SpinePlayerConfig is also incorrect. The comment marks it as optional (and from the usage it seems optional) but 4.2 has it as required.

davidetan commented 2 months ago

Related to this forum thread: https://esotericsoftware.com/forum/d/26766-unable-to-load-spine-fils-using-spine-web-player/18

I'll merge this and make a release later today.