mirror of
https://github.com/luksamuk/engine-psx.git
synced 2025-04-28 13:28:02 +03:00
Fix a bug on framepacker when there are no animation tags
This commit is contained in:
parent
b52a9ff7d7
commit
8a131be368
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue