Fix a bug on framepacker when there are no animation tags

This commit is contained in:
Lucas S. Vieira 2024-07-20 18:38:06 -03:00
parent b52a9ff7d7
commit 8a131be368

View file

@ -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,