Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raspi committed Feb 17, 2023
1 parent 1fb3903 commit 3b2eea8
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,19 @@ def get_key_frames(data: str, tuneX: int = 0, tuneY: int = 0) -> (List[KeyFrame]
ysize: int = 0

for i in data.split(";"):
key, tdata = i.split("~=")

x, y, xs, ys, _ = map(int, tdata.split(" "))
if '~=' in i:
key, tdata = i.split("~=")
else:
key, tdata = i.split("=")

_tmp:List[int] = list(map(int, tdata.split(" ")))

x = _tmp[0]
y = _tmp[1]
xs = _tmp[2]
ys = _tmp[3]

del _tmp

if xsize == 0:
xsize = xs + abs(tuneX)
Expand Down

0 comments on commit 3b2eea8

Please sign in to comment.