Fix key order
This commit is contained in:
parent
1ed1b09c7d
commit
4550c774f1
@ -39,12 +39,12 @@ def convert_folder(src: Path, dst: Path):
|
|||||||
sprite_size = sprite_sizes.pop()
|
sprite_size = sprite_sizes.pop()
|
||||||
assert(sprite_size[0] == sprite_size[1])
|
assert(sprite_size[0] == sprite_size[1])
|
||||||
size = sprite_size[0]
|
size = sprite_size[0]
|
||||||
marker_json = copy.deepcopy(METADATA)
|
marker_json = {
|
||||||
marker_json.update(
|
"name": src.name,
|
||||||
name=src.name,
|
"size": size,
|
||||||
size=size,
|
"fps": 30
|
||||||
fps=30
|
}
|
||||||
)
|
marker_json.update(**METADATA)
|
||||||
for anim in MarkerAnimation:
|
for anim in MarkerAnimation:
|
||||||
meta = METADATA[anim]
|
meta = METADATA[anim]
|
||||||
sprite_sheet = Image.new('RGBA', (size*meta["columns"], size*meta["rows"]), (0,0,0,0))
|
sprite_sheet = Image.new('RGBA', (size*meta["columns"], size*meta["rows"]), (0,0,0,0))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user