forked from jan/fatamorgana
fix non-numpy write_point_list
This commit is contained in:
parent
d25f3f1598
commit
715fe7ea24
@ -1559,10 +1559,9 @@ def read_point_list(stream: io.BufferedIOBase) -> List[List[int]]:
|
|||||||
points = []
|
points = []
|
||||||
x = 0
|
x = 0
|
||||||
y = 0
|
y = 0
|
||||||
for _ in range(list_len):
|
for delta in deltas:
|
||||||
delta = Delta.read(stream)
|
x += delta[0]
|
||||||
x += delta.x
|
y += delta[1]
|
||||||
y += delta.y
|
|
||||||
points.append([x, y])
|
points.append([x, y])
|
||||||
else:
|
else:
|
||||||
raise InvalidDataError('Invalid point list type')
|
raise InvalidDataError('Invalid point list type')
|
||||||
|
Loading…
Reference in New Issue
Block a user