Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spine objects cannot have the same texture atlas filename #6022

Closed
orjandh opened this issue Feb 24, 2022 · 2 comments
Closed

Spine objects cannot have the same texture atlas filename #6022

orjandh opened this issue Feb 24, 2022 · 2 comments
Labels
🗃 Loader 🐛 Spine An issue arising from the Spine runtime

Comments

@orjandh
Copy link

orjandh commented Feb 24, 2022

Version

  • Phaser Version: 3.55.2
  • Operating system: Windows 11
  • Browser: Chrome 98

Description

When using the Spine plugin, two spine files cannot have the same texture atlas png filename.

Example:

assets/spine1/skeleton.json
assets/spine1/skeleton.atlas
assets/spine1/skeleton.png <- same filename

assets/spine2/skeleton.json
assets/spine2/skeleton.atlas
assets/spine2/skeleton.png <- same filename

For some reason, the two spine game objects will now share the same texture atlas png. The atlas definition itself will be different, so it will be rendered as a chopped up Picasso-esque image.

Example Test Code

this.load.spine('spine1', 'assets/spine1/skeleton.json', 'assets/spine1/skeleton.atlas', true);
this.load.spine('spine2', 'assets/spine2/skeleton.json', 'assets/spine2/skeleton.atlas', true);

Additional Information

@photonstorm photonstorm added the 🐛 Spine An issue arising from the Spine runtime label Feb 28, 2022
@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

@spayton
Copy link
Contributor

spayton commented Feb 18, 2023

does this also need applying to the spine41 plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🗃 Loader 🐛 Spine An issue arising from the Spine runtime
Projects
None yet
Development

No branches or pull requests

3 participants