pixijs/spine

bug: atlas.findRegion is not a function

axldns opened this issue · 0 comments

Hey,

"pixi-spine": "^4.0.4",
"pixi.js": "^7.3.2",

This happens when trying to load atlas with already preloaded image like so:

await Assets.load([{
    src: "spine-data/Rocket.json",
    data: { image: Texture.from("images/main/Rocket.png") }
}]);

After some deep dive I believe I found the potential bug in base loader. In short, variable is attempted to read while being assigned.

image

I managed to fix it locally (change, build, pack, install), but I'm not quite sure how to contribute here.

the fix itself
image