Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Fix loading frame cells in Aseprite files #536

Merged
merged 1 commit into from
Mar 25, 2022

Conversation

jobe-m
Copy link
Contributor

@jobe-m jobe-m commented Mar 25, 2022

Then the Aseprite file contains empty cells in a to-be-loaded layer then
it did not create ImageFrame objects for those empty cells. That lead to
the problem that an animation could not be played if there are empty
cells in frames before the animation tag.
Now empty ImageFrame objects are created for empty cells. This fixes the
problem.

Unit test added to check if the frame array in the loaded Aseprite image
has the correct length.

Then the Aseprite file contains empty cells in a to-be-loaded layer then
it did not create ImageFrame objects for those empty cells. That lead to
the problem that an animation could not be played.
Now empty ImageFrame objects are created for empty cells. This fixes the
problem.

Unit test added to check if the frame array in the loaded Aseprite image
has the correct length.
@soywiz soywiz merged commit 0a18411 into main Mar 25, 2022
@soywiz soywiz deleted the feature/Fix_loading_cells_in_aseprite_files branch March 25, 2022 15:15
@soywiz
Copy link
Contributor

soywiz commented Mar 25, 2022

Nice. Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants