Skip to content

Commit

Permalink
Fix a bug on framepacker when there are no animation tags
Browse files Browse the repository at this point in the history
  • Loading branch information
luksamuk committed Jul 20, 2024
1 parent b52a9ff commit 8a131be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/framepacker.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,15 @@ def parse_layout(j):
}
for t in tiles
]
tags = j.get("tags")
animations = [
{
"name": "{:<16}".format(t.get("name").upper().replace(" ", "")),
"start": t.get("from"),
"end": t.get("to"),
}
for t in j.get("tags")
]
for t in tags
] if tags else []

res = {
"sprite_width": width,
Expand Down

0 comments on commit 8a131be

Please sign in to comment.