Skip to content

bug: atlas.findRegion is not a function #552

@axldns

Description

@axldns

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions