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

Importer gets softlocked when switching from individual to merged layer mode #61

Open
RikuTheKiller opened this issue Dec 11, 2024 · 0 comments

Comments

@RikuTheKiller
Copy link

RikuTheKiller commented Dec 11, 2024

Describe the bug
The importer throws an index out of bounds error at line 234 in AsepriteImporter.cs

To Reproduce
Steps to reproduce the behavior:

  1. Import an aseprite file with multiple layers using the individual layer mode.
  2. Switch to merged layer mode.
  3. Congrats, an error.

This error repeats indefinitely. Even if you delete the meta file. Somehow. :D

Expected behavior
To output a merged sprite without errors.

Screenshots
image

Desktop:

  • OS: Windows 10
  • Version: 6000.0.27f1

Additional context
Likely caused by the layer update system.
In debugging, it was indexing "spriteRects" and the other 2 arrays at 234 with invalid indices.
That index stems from the "cells" array having, in my case, a length of 4.
"spriteRects" and the other 2 have a length of 1.
The culprit is most likely the serialized value of "m_AsepriteLayers" from what I can tell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant